【问题标题】:command failed when installing package 'hevea'安装包'hevea'时命令失败
【发布时间】: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,其他包也一样。

收集橡胶树 使用缓存的https://files.pythonhosted.org/packages/d3/f8/aac0236675222c8af1a005efaf1855b286995b34e362db1ef38742960a62/hevea-0.2.tar.gz

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


    【解决方案1】:

    文件LICENSE 存在问题:the file 包含一些非 ascii 字符(©)但 it's open with default encoding 会阻止它在您的环境中打开.

    还要考虑最新版本是 0.2 版和was released at Jan 5, 2013。包裹太旧且被遗弃。很可能它需要 Python 2。

    我的建议是忘记它。

    【讨论】:

    • 非常感谢您的回答..我会尝试另一种像plastex,如果您知道什么是实用的^^
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多