pip: Could not fetch URL... problem confirming the ssl certificate
- Pip version: 9.0.1
- Python version: 3.5.0
- Operating system: MacOS 10.13.4
Description:
pip failing with SSL error in past week or so. Similar to issue #5063, but raising specific error.
What I’ve run:
`pip list -o`
# returns, e.g.:
`Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:646) - skipping`
`pip install --upgrade pip setuptools`
# returns
`Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:646) - skipping
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
Could not fetch URL https://pypi.python.org/simple/setuptools/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:646) - skipping
Requirement already up-to-date: setuptools in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages`
In virtual environment (created with `venv`) pip (9.0.3) works correctly:
`python -m pip list -o
pip (9.0.3) - Latest: 10.0.0 [wheel]
You are using pip version 9.0.3, however version 10.0.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.`
FIXED (work-around): installed Python 3.6.5 with pip 9.0.3. Updated pip to 10.0.0. Ran Install Certificates.command.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 18 (5 by maintainers)
For anybody who is still getting the same issue, upgrading
pip
manually works (in a venv, at least):curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
https://stackoverflow.com/a/49758204/7524479 This solved the issue for me.
I was getting this error too. I tried many suggestions, dint work. This one worked…
check which python & its ssl version python -c “import ssl; print(ssl.OPENSSL_VERSION)” OpenSSL 1.0.2f 28 Jan 2016
python3 -c “import ssl; print (ssl.OPENSSL_VERSION)” OpenSSL 0.9.8zh 14 Jan 2016
check pip pip --version pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)
upgrade pip for python3 curl https://bootstrap.pypa.io/get-pip.py | python3
pip --version pip 10.0.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip (python 3.5)
which pip /Library/Frameworks/Python.framework/Versions/3.5/bin/pip I was able to install python pip packages after this, SSL cert problem solved
Using libraries.io helps with keeping track of releases of projects you care about.