python - 通过 easy_install 更新包

标签 python ubuntu easy-install

我是 python 的新手。我想安装最新版本的 mitmproxy(0.17.1)。系统上安装的当前版本是 0.15。当我做的时候

easy_install -U mitmproxy 

它说:

Reading https://pypi.python.org/simple/mitmproxy/
Best match: mitmproxy 0.15
Processing mitmproxy-0.15-py2.7.egg
mitmproxy 0.15 is already the active version in easy-install.pth

所以它找不到最新版本,当我这样做时:

easy_install  'mitmproxy==0.17.1'

我明白了:

No local packages or download links found for mitmproxy==0.17.1

为什么找不到最新版本?我应该怎么做才能安装最新的?

最佳答案

来自 Why use pip over easy_install? (大胆的矿山):

Binary packages are now distributed as wheels (.whl files)—not just on PyPI, but in third-party repositories like Christoph Gohlke's Extension Packages for Windows. pip can handle wheels; easy_install cannot.

如果您访问 mitmproxy在 PyPi 上的页面,您会注意到 0.17 版本的唯一下载是 .whl 格式。

这就是 easy_install 对您不起作用的原因:它找不到它实际上可以为最新版本安装的任何东西。

解决方案

关于python - 通过 easy_install 更新包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38298308/

相关文章:

python - easy_install 和 macports 未安装到 Mac OS X 10.8 上正确的 Python 版本

mysql - 损坏的 mysqld 包阻止在 ubuntu 中进行任何其他安装

linux - ReviewBoard2.0.12安装失败

python - easy_install 没有安装 Mechanize?

python - python导入,有多少种方式?

python - 如何使用 flask-bootstrap 将标题文本垂直和水平居中

python - 尝试使用 nohup 启动 Python 脚本时出现语法错误

c++ - (.text.write_float+0xf7d) : undefined reference to `quadmath_snprintf'

python - 相当于 `--find-links` 中的 `setup.py`

python - 为什么我无法获得 Python 迭代器的倒数第二个结果?