我试着安装DRecPy库,这个库的安装描述为这里。
不幸的是,它不起作用。我尝试过用pip安装它,并使用setup.py直接安装。这两种方式都有错误。
第一项建议如下:
Building wheels for collected packages: pandas
Building wheel for pandas (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [1062 lines of output]
running bdist_wheel
running build
running build_py
creating build
第二个问题是:
Traceback (most recent call last):
File "projectpath\DRecPy\setup.py", line 15, in <module>
long_description = fh.read()
File "path\Python310\lib\encodings\cp1250.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 5916: character maps to <undefined>
发布于 2022-03-29 10:18:32
看起来,自述文件中有一个字符不能用集合编码读取。既然您已经有了源代码,请替换这里提到的行:
File "projectpath\DRecPy\setup.py", line 15, in <module>
long_description = fh.read()
使用
long_description = ""
在setup.py
文件中。那就去做
python setup.py install
注意,这表明这个包没有用python 3.10进行测试,因此您可能会在这里遇到其他问题。
还可以考虑通过在github上发布向包的作者报告此错误。
https://stackoverflow.com/questions/71658279
复制相似问题