本文介绍了sudo easy_install for SimpleITK并不是那么容易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以...我尝试了几种方法来在Python上下载SimpleITK(点安装),但根本无法正常工作! (在这里:)现在,我m使用easy_install时出现此错误:

 搜索simpleitk 
阅读https://pypi.python.org / simple / simpleitk /
https://pypi.python.org/simple/simpleitk/上的下载错误:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:590)-可能找不到某些软件包!
找不到'simpleitk'的索引页(可能拼写错误?)
扫描所有软件包的索引(这可能需要一段时间)
阅读https://pypi.python.org/ simple /
https://pypi.python.org/simple/上的下载错误:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:590)-可能找不到某些软件包!
未找到用于simpleitk
的本地软件包或下载链接错误:找不到Requirement.parse('simpleitk')


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



编辑:最终可以正常工作了!



With

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

在sudo su模式下

解决方案

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

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


So... I've tried several ways to download SimpleITK (pip install) on Python but it's not working at all! (Here: SimpleITK python 2.7.12 installation issue) Now I'm using easy_install and I get this error:

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')

Apparently, it's some kind of certification issue that I have no idea how to overcome. :/ Heelp

EDIT: FINALLY GOT IT TO WORK!

With

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

In sudo su mode

解决方案

Most likely your python was not compiled with SSL support. You can check this with the following command:

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

这篇关于sudo easy_install for SimpleITK并不是那么容易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 17:57