Pip can't confirm SSL certificate
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
- For upgrading pip
python -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip
- 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
stesteve
Updated on April 22, 2020Comments
-
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 about 6 yearsI am using Python 3.6.4
-
phd about 6 yearsPython 3.6 is surely above 3.4.
-
Morse about 6 yearsuse
pip3 install paramiko
notpip --trusted-host pypi.python.org install paramiko
-
Morse about 6 yearsGreat! 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 over 5 yearsOMG - sooo many other answers in this area did not work but this did!!!
-
Admin over 5 yearsNice to hear that!
-
Yunzhao Xing over 2 yearsYours 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 over 2 yearsOh, 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>