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
  problem with memory_graph module akbarza 3 298 Mar-04-2024, 10:15 AM
Last Post: snippsat
  Installation module 'pyproj' QuentinR 1 229 Feb-28-2024, 10:00 AM
Last Post: snippsat
  problem using coloeama module akbarza 3 514 Jan-08-2024, 07:31 AM
Last Post: akbarza
Question Need Help with Vehicle Routing Problem with Time Windows (VRPTW) in Python kasper321421312 1 506 Nov-10-2023, 08:19 PM
Last Post: snippsat
  problem in using subprocess module akbarza 5 944 Sep-24-2023, 02:02 PM
Last Post: snippsat
  Python installation for old MacOS Yonix 1 457 Sep-21-2023, 03:32 PM
Last Post: menator01
  problem in import module from other folder akbarza 5 1,260 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  problem in using pyqrcode module to create QRcode akbarza 9 1,798 Aug-23-2023, 04:17 PM
Last Post: snippsat
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 780 Jul-15-2023, 11:32 AM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 934 May-15-2023, 02:38 PM
Last Post: tonynapoli2309

Forum Jump:

User Panel Messages

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