Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip can't confirm SSL certificate

I am having trouble installing paramiko on one system. This same command worked earlier, but then something changed and I had reinstall Python, and now paramiko will not install. I am using Windows 7 with Python 3.6.4. Pip returns the following error:

C:\Users\me>pip --trusted-host pypi.python.org install paramiko
Collecting paramiko
  Could not fetch URL https://pypi.python.org/simple/paramiko/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) - skipping
  Could not find a version that satisfies the requirement paramiko (from versions: )
No matching distribution found for paramiko

How can I fix this?

like image 852
stesteve Avatar asked Mar 16 '18 19:03

stesteve


2 Answers

Using following commands helped me. please try this

  1. For upgrading pip

python -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip

  1. For installing new packages, eg numpy, pandas etc.

python -m pip install PACKAGE NAME --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org

Installing numpy package

Upgrade pip

like image 50
Arun Babu Avatar answered Nov 05 '22 21:11

Arun Babu


According to Paramiko installation documentation :

Versions supported :

  • Python 2.7
  • Python 3.4+

Looks like you are using incompatible version of Python

C:\Users\User>python -V
Python 3.6.4

Installation

pip3 install paramiko 

or

pip install paramiko

SSL: CERTIFICATE_VERIFY_FAILED can be caused by pip issue or python issue on Mac

Please upgrade pip to latest version for the same.

pip install --upgrade pip

After this issue should be resolved

Or try installing incremental

pip install incremental
like image 27
Morse Avatar answered Nov 05 '22 21:11

Morse