pip、easy_install和conda在ssl证书确认方面不会有问题

2024-04-26 22:22:51 发布

您现在位置:Python中文网/ 问答频道 /正文

嘿,我最近更新到OSX10.12.4,在更新之后,当我试图安装python包时,我就开始收到错误。或者在康达的情况下,我不能创造一个新的虚拟环境。Conda在Python的上下文中被使用。下面是我收到的命令行响应。在

皮普:

pip install tensorflow 

Collecting tensorflow

Could not fetch URL https://pypi.python.org/simple/tensorflow/: There was a 
problem confirming the ssl certificate: EOF occurred in violation of protocol 

(_ssl.c:590) - skipping Could not find a version that satisfies the 
requirement tensorflow (from versions: ) No matching distribution found for 
tensorflow

简易安装:

^{pr2}$

Conda(创建虚拟环境和安装模块时):

 conda create --name hello-world
 Fetching package metadata .......

 CondaHTTPError: HTTP None None for url <None>

 An HTTP error occurred when trying to retrieve this URL.
 SSLError(SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),),)

我不太清楚发生了什么事。我仍然可以使用已经创建的环境。在


Tags: thenonehttpurlsslfortensorflow错误