我使用的pip 1.5.1直到今天都运行良好。无法用pip安装旧版本
现在,我试图在新的virtualenv中安装requirements.txt,对于很多软件包,它不能再为大多数软件包找到特定的旧版本。
$ pip install django-endless-pagination==1.1
Downloading/unpacking django-endless-pagination==1.1
Could not find a version that satisfies the requirement django-endless-pagination==1.1 (from versions: 2.0)
Some externally hosted files were ignored (use --allow-external to allow).
Cleaning up...
No distributions matching the version for django-endless-pagination==1.1
我需要做些什么才能重新使用它?升级我的应用程序以使用所有软件包的所有最新版本是不可能的。
更新: 这在pip 1.4.1中正常工作。这是更新版本的pip,导致它失败。
按照消息的建议尝试'--allow-external'。 –
有关此问题的进一步讨论,请访问:https://github.com/pypa/pip/issues/1423 – LS55321
--allow-external会失败,并显示不同的错误,说明您需要添加--allow-unvalidate,这也会导致失败消息'您必须至少提供一个安装要求' – LS55321