小编wil*_*rse的帖子

在全新安装时导入ssl错误:未定义'PROTOCOL_TLS'

在Windows 10上使用Python 2(2.7.13)进行新的64位Anconda2(4.3.1)安装时,出现以下错误:

>>> import ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username_redacted\Anaconda2\lib\ssl.py", line 133, in <module>
  PROTOCOL_SSLv23 = PROTOCOL_TLS
NameError: name 'PROTOCOL_TLS' is not defined
Run Code Online (Sandbox Code Playgroud)

我发现有一些关于在Anaconda中使用Python的SSL问题的帖子可能是相关的:我已经尝试过运行类似的东西conda update openssl,我没有certifi安装,pip install ssl也没有用(因为ssl现在捆绑了python,我猜测).

有人有建议吗?我正在努力让BioPython工作,以防有某种特定于BioPython的修复.

谢谢!

python windows ssl python-2.7 anaconda

6
推荐指数
1
解决办法
1296
查看次数

标签 统计

anaconda ×1

python ×1

python-2.7 ×1

ssl ×1

windows ×1