pycocotools快速安装

用朋友cocotools包时,直接用pip安装慢的一批,而且总是会因为网速等问题下载不下来。
报一堆错误:

  ERROR: Command errored out with exit status 1:
   command: /root/anaconda3/envs/pytorch/bin/python /root/anaconda3/envs/pytorch/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-6kxh4zax/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'cython>=0.27.3' oldest-supported-numpy 'setuptools>=43.0.0' wheel
       cwd: None
  Complete output (10 lines):
  Collecting cython>=0.27.3
    Downloading Cython-0.29.26-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
  Collecting oldest-supported-numpy
    Downloading oldest_supported_numpy-0.15-py3-none-any.whl (3.8 kB)
  Collecting setuptools>=43.0.0
    Downloading setuptools-60.5.0-py3-none-any.whl (958 kB)
  Collecting wheel
    Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  ERROR: Could not find a version that satisfies the requirement numpy==1.14.5; python_version == "3.7" and platform_machine != "aarch64" and platform_system != "AIX" and platform_python_implementation != "PyPy" (from oldest-supported-numpy) (from versions: none)
  ERROR: No matching distribution found for numpy==1.14.5; python_version == "3.7" and platform_machine != "aarch64" and platform_system != "AIX" and platform_python_implementation != "PyPy" (from oldest-supported-numpy)
  ----------------------------------------
ERROR: Command errored out with exit status 1: /root/anaconda3/envs/pytorch/bin/python /root/anaconda3/envs/pytorch/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-6kxh4zax/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'cython>=0.27.3' oldest-supported-numpy 'setuptools>=43.0.0' wheel Check the logs for full command output.

解决办法:下载pycocotools安装包到本地

执行命令:python setup.py build_ext install

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值