错误:尝试安装 COCO API 时命令出错,退出状态为 1

时间:2021-06-30 09:38:17

标签: python-3.x cmd object-detection

我运行命令:pip install cython,输出:Requirement already satisfied: cython in c:\users\user\anaconda3\lib\site-packages (0.29.21)

然后我想使用pip命令安装coco api:

pip install git+https://github.com/philferriere/cocoapi.git

但是它给了我以下错误:

ERROR: Command errored out with exit status 1:
     command: 'C:\Users\User\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-req-build-2b9bbk11\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-req-build-2b9bbk11\\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\User\AppData\Local\Temp\pip-pip-egg-info-ayodxk3z'
         cwd: C:\Users\User\AppData\Local\Temp\pip-req-build-2b9bbk11\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\User\anaconda3\lib\tokenize.py", line 392, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\User\\AppData\\Local\\Temp\\pip-req-build-2b9bbk11\\setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我想说python安装在C盘,但是我想安装API的文件夹在D盘,会影响安装吗?如果不是什么问题。 谢谢

0 个答案:

没有答案