Pip can't confirm SSL certificate

24,357

Solution 1

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

Solution 2

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

Share:
24,357
stesteve
Author by

stesteve

Updated on April 22, 2020

Comments

  • stesteve
    stesteve about 4 years

    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?

  • stesteve
    stesteve about 6 years
    I am using Python 3.6.4
  • phd
    phd about 6 years
    Python 3.6 is surely above 3.4.
  • Morse
    Morse about 6 years
    use pip3 install paramiko not pip --trusted-host pypi.python.org install paramiko
  • Morse
    Morse about 6 years
    Great! That's because may be you have both python 2 and python 3 installed. Using pip3 will point it to python 3 interpreter.
  • R Claven
    R Claven over 5 years
    OMG - sooo many other answers in this area did not work but this did!!!
  • Admin
    Admin over 5 years
    Nice to hear that!
  • Yunzhao Xing
    Yunzhao Xing over 2 years
    Yours is the only one answer works for me. Thanks so much. BTW, do you know how to add those trust link permanently? It used to work well until today...
  • Yunzhao Xing
    Yunzhao Xing over 2 years
    Oh, I just found the way to add those sites permanently, <code> python -m pip config set global.trusted-host "pypi.org files.pythonhosted.org pypi.python.org" </code>