所以...我已经尝试了几种方法在Python上下载SimpleITK(pip install),但它根本不起作用! (这里:SimpleITK python 2.7.12 installation issue)现在我正在使用easy_install,我收到了这个错误:
Searching for simpleitk
Reading https://pypi.python.org/simple/simpleitk/
Download error on https://pypi.python.org/simple/simpleitk/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'simpleitk' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for simpleitk
error: Could not find suitable distribution for Requirement.parse('simpleitk')
显然,这是某种认证问题,我不知道如何克服。 :/ Heelp
编辑:最后工作!
使用
pip install --trusted-host pypi.python.org SimpleITK
在sudo su模式
答案 0 :(得分:1)
很可能你的python没有使用SSL支持编译。您可以使用以下命令检查:
python -c 'import socket; print(hasattr(socket, "ssl"))'