【解决 Command errored out with exit status 128: git clone -q https://github.com/cocodataset/cocoapi.g】

文章讲述了在安装COCOAPI时遇到git源被墙的问题,给出了将原git地址更改为Gitee地址作为解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:

install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI

报错

WARNING: Discarding git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI. Command errored out with exit status 128: git clone -q https://github.com/cocodataset/cocoapi.git /tmp/pip-req-build-odwd_81w Check the logs for full command output.

原因分析:

被墙了


解决方案:

改为

 pip install "git+https://gitee.com/wsyin/cocoapi.git#subdirectory=PythonAPI"
Using cached pymcubes-0.1.5.tar.gz (109 kB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3.6 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ms6da7js/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --find-links https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html -- setuptools wheel Cython 'numpy~=2.0' cwd: None Complete output (9 lines): Looking in links: https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html Collecting setuptools Using cached setuptools-59.6.0-py3-none-any.whl (952 kB) Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting Cython Using cached Cython-3.0.12-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB) ERROR: Could not find a version that satisfies the requirement numpy~=2.0 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5) ERROR: No matching distribution found for numpy~=2.0 ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/bc/5c/9f613236875d932f411b61d08e525d4f1db81ff4b42da92a9fdbda8855d0/pymcubes-0.1.5.tar.gz#sha256=760e0fcb6dcc1f9bdaabfe0ca9bd1da011062ecb8a24dfc5997004a140df260a (from https://pypi.org/simple/pymcubes/). Comma 报错了
最新发布
07-18
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值