4

I have looked through other solutions on this site, as well as on github but problem persists.

When I use pip3 to install something I get following error:

ki@debian:~/Documents/python/HelloWorld$ /usr/local/bin/python3 -m pip install -U pep8 --user pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting pep8 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pep8/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pep8/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pep8/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pep8/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pep8/ Could not fetch URL https://pypi.org/simple/pep8/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pep8/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping Could not find a version that satisfies the requirement pep8 (from versions: ) No matching distribution found for pep8"

Answer on the site is in link below pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available from there I have tried "debain" way since I am using debian and that did not work either

if I try to install sll same error come up. pip install ssl

if I try python3 -m pip install same problem troubles me with the following code python3 -m pip install --upgrade pip

I am trying to install pylinter and pep8 for python3/pip3 to be used in vscode (it does not matter whether I use vscode terminal or terminal outside vscode the problem persists even when i use 'pip3 install outside vscode/terminal).

I am having this trouble only with pip3 which I can't even upgrade to 18.1 (if I do then I can't use pip3 at all). And to remind you once again, the problem only appears when i use python3 or pip3 things look fine with pip or python (2.7)

I am fairly new to python, please solve this problem. I have tried everything that is on internet, let me find some solutions here.

And this is the error message I get (on pastebin). don't know how to use pastebin so leaving it empty

1
  • How did the debian way not work? Did you get any erros there? Commented Dec 12, 2018 at 14:27

2 Answers 2

5

I got the same "SSL module not available" error running the native pip that comes with Anaconda (18.1 currently). In my case, it was a system path issue, which I solved by adding the following directories to my path variable:

%Miniconda3_DIR%;%Miniconda3_DIR%\Library\mingw-w64\bin;%Miniconda3_DIR%\Library\usr\bin;%Miniconda3_DIR%\Library\bin;%Miniconda3_DIR%\Scripts;%Miniconda3_DIR%\bin;

Where, %Miniconda3_DIR% should be substituted by your Miniconda (or Anaconda) install path.

Answer from shiprem's comment on Github: Found here

Sign up to request clarification or add additional context in comments.

1 Comment

Worked for me on Windows 10 with Anaconda "version": "2019.03"
0

i faced the similar problem i unistalled the python and installed it again and while installing i ticked up the add python to the path and removed the default tick and also select the delimit the path and it worked fine.

2 Comments

What do you mean by "tick up the add python to the path" and "remove the default tick" ?
Is this a joke,they are using Debian so they use apt not a graphical installer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.