pip-3.3 SSL验证错误,Mac OSX 10.5.8 [英] pip-3.3 SSL verification error , mac OSX 10.5.8

查看:92
本文介绍了pip-3.3 SSL验证错误,Mac OSX 10.5.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从OSX 10.5.8的终端运行pip-3.3 install numpy时出现错误

I am getting an error when trying to run pip-3.3 install numpy from the terminal in OSX 10.5.8

这是有问题的错误:无法获取URL ...:

here is the error in question: could not fetch URL...:

[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:547)>

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:547)>

据我所知,

在Google或其他任何地方都没有关于此的任何信息.因此,任何人都可以提供的任何信息都会很好,因为手动安装软件包很麻烦.

as far as i can tell there is no information on this at all on google or anywhere else for that matter. So any information anyone can provide would be nice because installing packages by hand is a pain.

pip版本:

来自/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg(python 3.3)的pip 1.3.1

pip 1.3.1 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg (python 3.3)

我的问题是:有人知道导致此错误的原因以及如何解决该问题吗?

The question I have is: Does anyone know what is causing this error and how I can fix it?

我可以根据要求提供您可能需要的任何其他信息.

I can provide any other information you may need at request.

/Library/Frameworks/Python.framework/Versions/3.3/bin/pip run on Thu Apr 18 17:$
Downloading/unpacking numpy

  Getting page https://pypi.python.org/simple/numpy/
  Could not fetch URL https://pypi.python.org/simple/numpy/: There was a proble$

  Will skip URL https://pypi.python.org/simple/numpy/ when looking for download$

  Getting page https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/: There was a problem conf$

  Will skip URL https://pypi.python.org/simple/ when looking for download links$

  Cannot fetch index base URL https://pypi.python.org/simple/

  URLs to search for versions for numpy:
  * https://pypi.python.org/simple/numpy/
  Getting page https://pypi.python.org/simple/numpy/


    No distributions at all found for numpy
Storing complete log in /Users/codymallery/.pip/pip.log}

推荐答案

Mac OSX的Python版本似乎已链接到SSL库的过时版本,因此pypi SSL证书未通过某些检查.

Python versions for Mac OSX seem to be linked to a dated version of the SSL library, so the pypi SSL certificate fails some check.

快速解决方案是将pip降级为不使用SSL的版本:

The quick fix is to downgrade pip to a version that doesn't use SSL:

easy_install pip==1.2.1

这篇关于pip-3.3 SSL验证错误,Mac OSX 10.5.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆