2

所以...我尝试了几种在 Python 上下载 SimpleITK(pip install)的方法,但它根本不起作用!(这里:SimpleITK python 2.7.12 安装问题)现在我正在使用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 模式下

4

1 回答 1

1

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

python -c 'import socket; print(hasattr(socket, "ssl"))'
于 2017-07-19T18:50:31.663 回答