Why won't pip install the current version of a package?

时光毁灭记忆、已成空白 提交于 2019-12-21 20:14:57

问题


I can't get pip to install the current version of pydot (1.0.28). Though yolk and PyPi both report this version as the available, current one,

pip -U pydot

gives me

Requirement already up-to-date: pydot in /Library/Python/2.7/site-packages
Requirement already up-to-date: pyparsing in /Library/Python/2.7/site-packages (from pydot)
Requirement already up-to-date: setuptools in /Library/Python/2.7/site-packages (from pydot)

forcing the current version with

pip -U pydot==1.0.28

gives me

Downloading/unpacking pydot==1.0.28
  Could not find a version that satisfies the requirement pydot==1.0.28 (from versions: 1.0.2)
  Some externally hosted files were ignored (use --allow-external to allow).
Cleaning up...
No distributions matching the version for pydot==1.0.28

and even

pip -U --allow-external pydot pydot==1.0.28

gives me

Downloading/unpacking pydot==1.0.28
  Could not find a version that satisfies the requirement pydot==1.0.28 (from versions: 1.0.2)
  Some insecure and unverifiable files were ignored (use --allow-unverified pydot to allow).
Cleaning up...
No distributions matching the version for pydot==1.0.28

回答1:


Try this:

pip install --allow-unverified pydot pydot==1.0.28



来源:https://stackoverflow.com/questions/22868777/why-wont-pip-install-the-current-version-of-a-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!