我试图升级到我安装的软件包的最新版本pip,但由于某种原因它无法获得最新版本。我尝试卸载有问题的软件包,甚至pip完全重新安装,但它仍然拒绝从 PyPI 获取最新版本。当我尝试固定软件包版本(例如pip install package==0.10.0)时,它说“找不到满足要求的版本 package==0.10.0(来自版本:...)”
pip search package甚至承认安装的版本不是最新的,为我标记了两个版本。
我已经看到了有关外部文件或本地版本的其他问题,但我已经尝试了相应的解决方案(--allow-external不再存在,并且--no-cache-dir没有帮助),但我仍然停留在旧版本上。
在某种程度上,这个问题已被问到......所以接受我的道歉......
我想从这里安装最新版本的matplotlib:http: //pypi.python.org/pypi/matplotlib/1.0.1
我知道我可以下载它,解压缩并编译它,但我要将它安装在许多机器上,而pip应该是一种幸福.
所以,我做了easy_install pip,这里是我用两种工具得到的输出:
$ sudo easy_install "matplotlib==1.0.1"
install_dir /usr/local/lib/python2.6/dist-packages/
Searching for matplotlib==1.0.1
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/
Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/
No local packages or download links found for matplotlib==1.0.1
error: Could not find suitable distribution for Requirement.parse('matplotlib==1.0.1')
Run Code Online (Sandbox Code Playgroud)
或者用pip:
$ pip install matplotlib==1.0.1
Downloading/unpacking matplotlib==1.0.1
Could not find a version that satisfies the requirement matplotlib==1.0.1 (from versions: )
No distributions matching the version for …Run Code Online (Sandbox Code Playgroud)