Python pip安装SSLError坏握手

时间:2018-02-20 11:23:53

标签: python pip

我正在尝试在Windows 10上安装各种python软件包。我安装了anaconda,由于缺乏管理员权限,直到现在还无法安装未包含在conda中的软件包。我安装了python版本3.6.3。我有OpenSSl版本1.0.2.k 2017年1月26日。

我正在使用JetBrains Pycharm中的python控制台。

import pip
pip.main(['install','Plotly'])

结果:

Collecting Plotly
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/plotly/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/plotly/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/plotly/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/plotly/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/plotly/
Could not find a version that satisfies the requirement Plotly (from versions: )
No matching distribution found for Plotly

如果我尝试安装不存在的软件包(fsldkjfs),我会得到完全相同的错误。如果我尝试安装已安装的软件包,我会

Requirement already satisfied: numpy in c:\program files\anaconda\lib\site-packages

我今天早些时候确实有一个与证书相关的弹出窗口,但是可以记住verbatum的消息是什么

1 个答案:

答案 0 :(得分:0)

打开你的anaconda提示文件夹并右键单击anaconda提示,选择DefendPoint管理员并以这种方式打开它,然后你就可以安装你的软件包了。