Could not find a version that satisfies the requirement skimage

问题背景

参考网址:
安装skimage出错的解决方法

问题解决的途径
pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: )…

安装python的skimage库时出错,报错为:
在这里插入图片描述

   ERROR: Command errored out with exit status 1:
     command: 'c:\users\lenovo\appdata\local\programs\python\python37\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Lenovo\\LOCALS~1\\Temp\\pip-install-rt4yjh1m\\skimage_e36a5cee587b4226950b25fb2626e228\\setup.py'"'"'; __file__='"'"'C:\\Users\\Lenovo\\LOCALS~1\\Temp\\pip-install-rt4yjh1m\\skimage_e36a5cee587b4226950b25fb2626e228\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Lenovo\LOCALS~1\Temp\pip-pip-egg-info-3ags2nd3'
         cwd: C:\Users\Lenovo\LOCALS~1\Temp\pip-install-rt4yjh1m\skimage_e36a5cee587b4226950b25fb2626e228\
    Complete output (3 lines):

    *** Please install the `scikit-image` package (instead of `skimage`) ***

    ----------------------------------------
WARNING: Discarding https://pypi.doubanio.com/packages/3b/ee/edbfa69ba7b7d9726e634bfbeefd04b5a1764e9e74867ec916113eeaf4a1/skimage-0.0.tar.gz#sha256=6c96a11d9deea68489c9b80b38fad1dcdab582c36d4fa093b99b24a3b30c38ec (from https://pypi.doubanio.com/simple/skimage/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement skimage (from versions: 0.0)
ERROR: No matching distribution found for skimage
WARNING: You are using pip version 21.1.1; however, version 22.0.4 is available.
You should consider upgrading via the 'c:\users\lenovo\appdata\local\programs\python\python37\python.exe -m pip install --upgrade pip' command.

问题解决

后来我注意到了这几句话:

Please install the `scikit-image` package (instead of `skimage`)
Could not find a version that satisfies the requirement skimage (from versions: 0.0)

查阅资料后改命令为:

pip install scikit-image -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

成功了
在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值