Python pip突然停止工作,并显示SSL:CERTIFICATE_VERIFY_FAILED错误。
我无法安装任何pip软件包。
sudo pip install scikit-image抛出以下错误
连接被'SSLError(SSLError(1,u)[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c :590)'),)':/ simple / scikit-image /
无法获取URL https://pypi.python.org/simple/scikit-image/:确认ssl证书时出现问题:
HTTPSConnectionPool(host = 'pypi.python.org',端口= 443):url:/ simple / scikit-image /超出了最大重试次数(由SSLError(SSLError(1,u'[SSL:CERTIFICATE_VERIFY_FAILED]证书导致验证失败(_ssl.c: 590)'),))-跳过
我尝试使用,easy_install但给出了相同的SSL错误。
当我尝试使用wget下载5GB的zip文件时,下载的文件大小以KB为单位
。有人可以为上述问题提出解决方案。
谢谢
安装软件时,我的终端收到了一条消息: You are using pip version 8.1.1, however version 10.0.0 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
所以我升级了pip版本: $ pip install --upgrade pip
现在我收到此错误:
~$ pip install ipython
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
Run Code Online (Sandbox Code Playgroud) 以前我曾经通过pip安装软件包,但是现在我试图使用pip安装Python库,但遇到SSL错误:
/home/teleduce/.virtualenvs/teleduce_handler/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/teleduce/.virtualenvs/teleduce_handler/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections …Run Code Online (Sandbox Code Playgroud)