Paul has described the technical details behind this phenomenon, but to be more explicit: it is not pip that breaks older packages, but the new PyPI server (pypi.org instead of the old pypi.python.org) that does. So no, there is not a legacy mode in pip. Furthermore, you won’t be able to install the package now, even if you have the old pip version. The only way to overcome this is to find the original package, and either upload it to PyPI, or serve it yourself on your own server.
On 18/12/2018, at 22:05, Paul Moore <p.f.moore@gmail.com> wrote:
The PyPI index page for fcrypt (https://pypi.org/simple/fcrypt/) has no file links on it. I don't know why, but there's nothing there for pip to download.
The "Download" link points to a file not on PyPI - maybe that's the issue here, PEP 470 describes the process that was undertaken to remove external file hosting from PyPI (and the reasons behind doing so).
Paul
On Tue, 18 Dec 2018 at 13:55, Robin Becker <robin@reportlab.com> wrote:
I recently had to rebuild a server and find that pip 18.1 is apparently unable to install at least some older packages eg
$ bin/pip install fcrypt Collecting fcrypt Could not find a version that satisfies the requirement fcrypt (from versions: ) No matching distribution found for fcrypt
the version I needed is in fact the last released 1.3.1 (in 2004) and it was installed by an earlier pip. I tried being more explicit
$ bin/pip install fcrypt==1.3.1 Collecting fcrypt==1.3.1 Could not find a version that satisfies the requirement fcrypt==1.3.1 (from versions: ) No matching distribution found for fcrypt==1.3.1
I assume that latest pip needs information from the package / pypi data that is not available. Luckily installing from a pypi download works.
Is there any legacy mode in pip? It seems wrong to cause these older packages to become unusable. -- Robin Becker -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/FT6JK...
-- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/UQD22...