错误:命令出错,退出状态为 1:python setup.py egg_info。pip 安装时出现语法错误。如何解决?

费姆克

我在使用 pip 安装 FoBiS 时遇到问题。

输入: pip install FoBiS.py

返回:

    ERROR: Command errored out with exit status 1:
     command: /home/femke/Programs/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rumwdmo2/multiprocessing/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rumwdmo2/multiprocessing/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 /tmp/pip-pip-egg-info-s25t8ebi
         cwd: /tmp/pip-install-rumwdmo2/multiprocessing/
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-rumwdmo2/multiprocessing/setup.py", line 94
        print 'Macros:'
              ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Macros:')?
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

系统: Linux Ubuntu 20.4 LTS、Pyhton 3.8.3

我试图更新设置工具。你知道如何解决这个问题吗?

博士

这是包中的一个错误。该包需要的依赖项实际上是 Python 标准模块。该错误pip试图安装非常旧的仅 Python2 版本的multiprocessing.

该错误是最近引入的,并出现在 3.0.3 版中。尝试安装像 3.0.2 这样的旧版本:

pip install FoBiS.py==3.0.2

我报告了这个错误:https : //github.com/szaghi/FoBiS/issues/117#issuecomment-684895781

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章