My only gripe...
My only gripe...
Posted Apr 13, 2018 22:29 UTC (Fri) by sumanah (guest, #59891)In reply to: My only gripe... by rdfm
Parent article: A new package index for Python
For reference (for other folks): PyPI has just turned off support for TLS versions 1.0 and 1.1 (announcement on the general Python announcement email list: https://mail.python.org/pipermail/python-announce-list/20... ). Also, on June 30, 2018, all Python.org sites are going to entirely stop supporting TLS versions 1.0 and 1.1, because PyPI's CDN provider, Fastly, is deprecating support for those versions (blog post: https://pyfound.blogspot.com/2017/01/time-to-upgrade-your... ).
We're seeing that some users of older versions of OpenSSL are affected. Users of OS X versions 10.12 and below who use Python are particularly affected by this deprecation, as the Apple-supplied system Python (version 2.7) links to an older version of OpenSSL, so "pip install" now fails for them. A detailed explanation of that is in https://github.com/pypa/warehouse/issues/3293#issuecommen... . Upgrading pip to 9.0.3 will generally fix the issue. To upgrade affected clients, run:
curl https://bootstrap.pypa.io/get-pip.py | python
Whenever anyone has trouble `pip install`ing anything, I hope they turn up the verbosity with `-vv` to check the error message and check the PyPI/python.org status page http://status.python.org/ . And we've just started up a pretty low-traffic PyPI announcement email list https://mail.python.org/mm3/mailman3/lists/pypi-announce.... that would probably be good for folks to subscribe to if they are at companies that depend on PyPI.
Posted Apr 14, 2018 6:25 UTC (Sat)
by zdzichu (subscriber, #17118)
[Link] (1 responses)
Would you please do not spread such horrible antipatterns?
Posted Apr 14, 2018 15:14 UTC (Sat)
by sumanah (guest, #59891)
[Link]
For audiences and contexts like this one, perhaps this suggestion is better:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# Inspect get-pip.py for any malevolence. Then run the following:
python get-pip.py
My only gripe...
I genuinely welcome a better suggestion for a one-liner command-line invocation (for use in things like tweets and announcement emails) that gets the user the latest pip (see the opening comment here on why and how the whole of pip is contained in that file), verifies the SSL certificate, and works on all supported versions of Mac OS X and approximately all Linux distros (including headless systems).
advising users on how to upgrade pip