gpt4 book ai didi

python - 错误 : Command errored out with exit status 1

转载 作者:行者123 更新时间:2023-12-05 02:55:56 24 4
gpt4 key购买 nike

我试过:

pip3 install -r requirements.txt

这是我收到的错误:

 Command "python setup.py egg_info" failed with error code 1 in 
C:\Users\Admin\AppData\Local\Temp\pip-install-6c3rea1s\pycocotools\
You are using pip version 19.0.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

所以,我试过:

pip install --upgrade pip

install pip3 install -r requirements.txt

这导致了更多的错误:

 ERROR: Command errored out with exit status 1:      command:
'c:\users\admin\appdata\local\programs\python\python37-32\python.exe'
-c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-epmkeh4g\\pycocotools\\setup.py'"'"';
__file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-epmkeh4g\\pycocotools\\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\Admin\AppData\Local\Temp\pip-install-epmkeh4g\pycocotools\pip-egg-info'
cwd:
C:\Users\Admin\AppData\Local\Temp\pip-install-epmkeh4g\pycocotools\
Complete output (5 lines): Traceback (most recent call last):
File "<string>", line 1, in <module> File
"C:\Users\Admin\AppData\Local\Temp\pip-install-epmkeh4g\pycocotools\setup.py",
line 2, in <module> from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
---------------------------------------- ERROR: Command errored out
with exit status 1: python setup.py egg_info Check the logs for full
command output.

我删除了文件夹并重新安装,但结果还是一样。

最佳答案

这是 pycocotools 中的错误.该错误已修复 in 2017但似乎该修复程序并未进入 2018 年的 2.0 版(我猜发布过程也有问题)。

setup.py中还有另一个类似的错误。 — 它在安装之前导入 numpy

使用 requirements.txt 没有针对这些错误的简单解决方法。在安装 pycocotools 之前,您需要安装所需的模块:

pip install Cython numpy
pip install -r requirements.txt

关于python - 错误 : Command errored out with exit status 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60937863/

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