[问题] 安装semopy套件错误(已解决)

楼主: fjugamer (DR.西尔尔克)   2023-07-30 00:09:10
各位板上先进好~
小弟刚自学python一年多,
主要是想作统计资料分析之用,
最近在学结构方程模型,有用到一个套件semopy,
但一直无法安装,中间我试图安装python比较早的版本,
结果仍然失败,不晓得要怎么处理才能成功安装?
以下先把终端机输入完pip install semopy的程式回应贴上(我是用VS code写程式)
谢谢大家<(_ _)>
Collecting semopy
Using cached semopy-2.3.9.tar.gz (1.6 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File
"C:\Users\User\AppData\Local\Temp\pip-install-ysc0t0i4\semopy_9fb5378c0385468fae5939a9053ff49b\setup.py",
line 5, in <module>
long_description = fh.read()
UnicodeDecodeError: 'cp950' codec can't decode byte 0xc3 in position
1567: illegal [end of output]
note: This error originates from a subprocess, and is likely not a problem
with pip.
error: metadata-generation-failed
作者: cloki (夜云天)   2023-07-30 06:44:00
作者: lycantrope (阿宽)   2023-07-30 11:32:00
windows默认decode就不是utf8,设定环境让open用utf8或是自己改setup.py都加encoding="utf-8"

Links booklink

Contact Us: admin [ a t ] ucptt.com