我使用的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