pip failing with SSL error in past week or so. Similar to issue #5063, but raising specific error.
`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.
osx broke tls for pip < 9.0.3 a few days ago, which is why the emergency releases of pip 9.0.3 where made
Thank you, Ronny. Is there an easy way to keep up-to-date on such things -- new releases, emergency releases? By email, perhaps?
I am new at this. Should I close this issue?
Using libraries.io helps with keeping track of releases of projects you care about.
Seems like this was solved, closing it. Thanks!
Thanks, Pradyun for the libraries.io http://libraries.io/ tip!
On Apr 14, 2018, at 6:03 PM, Pradyun Gedam notifications@github.com wrote:
Using libraries.io helps with keeping track of releases of projects you care about.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/pypa/pip/issues/5226#issuecomment-381366878, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad6AiLqXDMagFhAHv7Gh714TAzagBXnvks5tooAkgaJpZM4TVIwE.
You might also want to subscribe to the pypi-announce mailing list https://mail.python.org/mm3/mailman3/lists/pypi-announce.python.org/ for updates about future changes to PyPI.
Thanks!
On Apr 17, 2018, at 12:56 PM, Sumana Harihareswara notifications@github.com wrote:
You might also want to subscribe to the pypi-announce mailing list https://mail.python.org/mm3/mailman3/lists/pypi-announce.python.org/ for updates about future changes to PyPI.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
https://stackoverflow.com/a/49758204/7524479 This solved the issue for me.
@drastorguev The linked command fails on Windows 7:
'curl' is not recognized as an internal or external command operable program or batch file.
Upgrading MacOS to High Sierra and then upgrading pip to the latest version solved it.
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
I just installed Python 2.7.15 in El Capitan and I still get this error
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
the same issue ,
python3 -m pip install numpy
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You will want to upgrade your OS as well, from the comment above it sounds like the OS is at fault.
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
This worked for me for packages that didn't update to the latest TLS version:
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org
omg you saved my life man. I was literally trying to solve this issue for three hours. I even called Apple customer service and they didn't know how to help me. Upgrading pip was the solution all along. Thank you a million times.
I notice that no one has posted a comment summarizing the situation...
You can read more on what this is caused by at https://pyfound.blogspot.com/2017/01/time-to-upgrade-your-python-tls-v12.html.
Most helpful comment
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