问题描述:
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"
文章讲述了在安装COCOAPI时遇到git源被墙的问题,给出了将原git地址更改为Gitee地址作为解决方案。
5952





