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

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条回答 默认 最新

  • 关注

    报错的信息提示的是 /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下来

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题