Python Forum

Full Version: [Python 3.6.4/Windows] Problem with module installation and SSL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everybody

I encounter a problem with pip. Some other guys, here had similar trouble but it was under Linux.

Here is what I obtain when attempting to install a module with pip:

python -m pip install ptvsd
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting ptvsd
Could not fetch URL https://pypi.python.org/simple/ptvsd/: 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 a version that satisfies the requirement ptvsd (from versions: )
No matching distribution found for ptvsd


Remark :

import ssl; print(ssl.OPENSSL_VERSION)
OpenSSL 1.0.2k 26 Jan 2017
(This is what I obtain with this snippet)

Suggestions ?

Thanks a lot by advance
I've not used this module, but it seems to be a part of Microsoft's Python Development Tools for Visual Studio. Perhaps you need to install it from within that context?

EDIT:
oopsy, just tried it (without VS) and it installed O.K.

C:\>pip install ptvsd
Collecting ptvsd
  Downloading ptvsd-3.2.1-py2.py3-none-any.whl (59kB)
    100% |████████████████████████████████| 61kB 163kB/s
Installing collected packages: ptvsd
Successfully installed ptvsd-3.2.1

C:\>
Are you using the latest version of pip (9.0.0.1)?
Finally, I solved my problem.
I added some path in PYTHONPATH, I shouldn't have to.

Hoping it helps for some newbies like me in the future.

Sorry for the disturbing, sparkz_alot.
Not a problem, glad you found the solution.