【发布时间】:2020-03-26 22:51:07
【问题描述】:
当我运行 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 检查日志以获取完整的命令输出。
寻找解决方案, 提前谢谢^^
【问题讨论】:
标签: python pip pycharm package