gpt4 book ai didi

pip - 错误 : Command errored out with exit status 1: python setup. py egg_info。 pip 安装的语法错误。如何解决?

转载 作者:行者123 更新时间:2023-12-03 08:24:40 24 4
gpt4 key购买 nike

我在使用 pip 安装 FoBiS 时遇到问题。
输入: pip 安装 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,Python 3.8.3
我试图更新 setuptools。你知道如何解决这个问题吗?

最佳答案

这是包中的一个错误。包requires dependencies这实际上是 Python 标准模块。带有错误 pip正在尝试安装 very old Python2-only version of multiprocessing .
错误是 introduced recently并在版本 3.0.3 中呈现。尝试安装旧版本,如 3.0.2:

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

关于pip - 错误 : Command errored out with exit status 1: python setup. py egg_info。 pip 安装的语法错误。如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63686642/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com