当我运行pip install hevea时,我会得到
命令“ python setup.py egg_info”在C:\ Users \ Dell \ AppData \ Local \ Temp \ pip-install-kri1uw9c \ hevea \中失败,错误代码为1,其他软件包也是如此。
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Dell\PycharmProjects\testbug\venv\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Dell\\AppData\\Local\\Temp\\pycharm-packaging\\hevea\\setup.py'"'"'; __file__='"'"'C:\\Users\\Dell\\AppData\\Local\\Temp\\pycharm-packaging\\hevea\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Dell\AppData\Local\Temp\pycharm-packaging\hevea\pip-egg-info'
cwd: C:\Users\Dell\AppData\Local\Temp\pycharm-packaging\hevea\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Dell\AppData\Local\Temp\pycharm-packaging\hevea\setup.py", line 21, in <module>
license=open('LICENSE').read(),
File "C:\Users\Dell\AppData\Local\Programs\Python\Python38\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 181: character maps to <undefined>
----------------------------------------
错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。
寻找解决方案, 在此先感谢^^
答案 0 :(得分:0)
文件LICENSE
存在问题:the file包含一些非ASCII字符(©
,“
,”
),但是{{ 3}},以防止它在您的环境中打开。
还请考虑最新版本为0.2和it's open with default encoding。包装太旧,被遗弃。很可能它需要Python 2。
我的建议是忘记它。