所以...我尝试了几种方法来在Python上下载SimpleITK(pip安装),但根本无法正常工作! (在这里: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')


显然,这是我不知道如何克服的某种认证问题。 :/脚跟

编辑:终于可以使用了!



pip install --trusted-host pypi.python.org SimpleITK


在sudo su模式下

最佳答案

您的python很可能没有使用SSL支持进行编译。您可以使用以下命令进行检查:

python -c 'import socket; print(hasattr(socket, "ssl"))'

10-08 19:52