XJSCREAM
XJSCREAM
2021-03-04 02:46
采纳率: 100%
浏览 56

ubuntu-20.10 pip3 安装出错如何解决

$ pip3 install git+https://github.com/AIcrowd/coco.git
Collecting git+https://github.com/AIcrowd/coco.git
  Cloning https://github.com/AIcrowd/coco.git to /tmp/pip-req-build-dbxqlxdj
  Running command git clone -q https://github.com/AIcrowd/coco.git /tmp/pip-req-build-dbxqlxdj
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-dbxqlxdj/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-dbxqlxdj/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-sbvbi5l2
         cwd: /tmp/pip-req-build-dbxqlxdj/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.8/tokenize.py", line 392, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-dbxqlxdj/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • technologist_08
    已采纳

    报错的信息提示的是 /tmp/pip-req-build-dbxqlxdj/setup.py 这个文件不存在。

    看你的安装命令 /tmp/pip-req-build-dbxqlxdj/ 是从 https://github.com/AIcrowd/coco.git 这个git仓库clone下来的

    检查下是否能连接到 https://github.com/AIcrowd/coco.git 这个仓库地址,检查方式:

    1.执行  ping github.com,查看是否能正常返回

    2.执行 git clone https://github.com/AIcrowd/coco.git 查看能否将项目clone下来

    点赞 1 评论

相关推荐