Jan-13-2019, 12:11 AM
I think that I know why it is not working. I have two versions of Python 3 on my laptop. They are python 3.5.2 and python 3.6.3.
Now in the python 3.5.2 environment i can import ssl no problem.
But in the python 3.6.3 environment I get an error when i import ssl.
The copy and paste shows this below.
python3.6
Python 3.6.3 (default, Jan 6 2019, 04:48:22)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/ssl.py", line 101, in <module>
import _ssl # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'
>>>
james@james-VirtualBox:~$ python3.5
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> import ssl
So how d I fix this? I am not sure, but I believe the above copy and paste shows the isssue clearly.
Any help appreciated. Thanks in advance.
Respectfully,
ErnestTBass
Now in the python 3.5.2 environment i can import ssl no problem.
But in the python 3.6.3 environment I get an error when i import ssl.
The copy and paste shows this below.
python3.6
Python 3.6.3 (default, Jan 6 2019, 04:48:22)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/ssl.py", line 101, in <module>
import _ssl # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'
>>>
james@james-VirtualBox:~$ python3.5
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> import ssl
So how d I fix this? I am not sure, but I believe the above copy and paste shows the isssue clearly.
Any help appreciated. Thanks in advance.
Respectfully,
ErnestTBass