问题背景
参考网址: 安装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
成功了
|