2017-07-19 49 views
2

所以...我已经尝试了几种方法来在Python上下载SimpleITK(pip install),但它根本不工作! (这里:SimpleITK python 2.7.12 installation issue)现在我使用easy_install的和我得到这个错误:sudo easy_install为SimpleITK没那么容易

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 

在须藤苏模式

+0

我试图运行'点子安装simpleitk'我使用python 2.7.12跑进没有任何问题和PIP 9.0.1 –

+0

我明白了...问题是,我使用的电脑有一些奇怪的安全漏洞。但我知道了=) – user

回答

1

最有可能你的Python不支持SSL的编译。你可以用下面的命令检查:

python -c 'import socket; print(hasattr(socket, "ssl"))' 
相关问题