Python Forum
[Python 3.6.4/Windows] Problem with module installation and SSL
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Python 3.6.4/Windows] Problem with module installation and SSL
#1
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
Reply
#2
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)?
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
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.
Reply
#4
Not a problem, glad you found the solution.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 830 Apr-06-2025, 07:56 PM
Last Post: Edward_
  problem with memory_graph module akbarza 5 1,763 Jan-14-2025, 04:31 PM
Last Post: Gribouillis
  Python 3.13(Windows) does not have the latest module OS phillip_from_oz 1 851 Dec-13-2024, 04:35 AM
Last Post: deanhystad
  White Screen Issue with Toolbar After Python Installation evelynfreya 2 1,067 Nov-25-2024, 06:26 PM
Last Post: deanhystad
  Install a module to a specific to Python Installation (one of many)) tester_V 2 2,095 Oct-29-2024, 03:25 PM
Last Post: snippsat
  Shrink Python installation? Extract site-packages from .zip only on demand? pstein 4 1,620 Oct-28-2024, 04:29 PM
Last Post: snippsat
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 2,278 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  Installation module 'pyproj' QuentinR 1 2,824 Feb-28-2024, 10:00 AM
Last Post: snippsat
  problem using coloeama module akbarza 3 1,491 Jan-08-2024, 07:31 AM
Last Post: akbarza
Question Need Help with Vehicle Routing Problem with Time Windows (VRPTW) in Python kasper321421312 1 2,148 Nov-10-2023, 08:19 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020