Import ssl error on new installation: "PROTOCOL_TLS" not defined

In the new 64-bit installation of Anconda2 (4.3.1) with Python 2 (2.7.13) on Windows 10, I get the following error:

>>> 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

I understand that there are several reports of SSL issues with Python in Anaconda that may be related: I have already tried using things like conda update opensslI donโ€™t have certifi, but pip install ssldoesn't (since ssl is bundled with python now, I think) .

Does anyone have any tips? I am trying to get BioPython to work if there is some specific BioPython solution.

Thanks!

+6
source share

Source: https://habr.com/ru/post/1016476/


All Articles