Community
cancel
Showing results for 
Search instead for 
Did you mean: 
3,296 Views

pip install XXX; SSL dependency in Win10

Hi Expert,

I got the following error while trying to install any 3rd party module from PYPI.

pip install XXX

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

 

Could not fetch URL https://pypi.python.org/simple/pyvisa/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping

0 Kudos
10 Replies
Rohit_J_Intel
Employee
3,296 Views

Hi Mingliang,

We build CPython with OpenSSL support, hence it is strange that pip complains about SSL/TLS support being absent. Please run the following commands and paste its output here: 

  1. where pip
  2. <path_to_Intel_Distribution_for_Python>\Scripts\conda.exe list
  3. <path_to_Intel_Distribution_for_Python>\python.exe -c "import ssl; import _ssl; print(ssl.OPENSSL_VERSION)"

As we continue investigating this, I can suggest a temporary workaround that you could use to circumvent this issue. You can try to fetch pyvisa using one of the following commands:

1. <path_to_Intel_Distribution_for_Python>\Scripts\pip.exe install --index-url=http://pypi.python.org/simple/ pyvisa
OR
2. <path_to_Intel_Distribution_for_Python>\Scripts\pip.exe install --trusted-host pypi.python.org pyvisa

Thanks,
Rohit

3,296 Views

Hello Rohit,

Still not work. I have tried IntelPython3 and miniconda. Both said SSL unavailable in Python.

And I don't have CPython or OpenSSL  ...

C:\IntelPython3\Scripts>pip.exe install --index-url=https://pypi.python.org/simple/ pyvisa
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pyvisa
  Could not fetch URL https://pypi.python.org/simple/pyvisa/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not find