python-2.7 - `python -m ensurepip --upgrade` 似乎没有升级 pip 和 setuptools

标签 python-2.7 pip homebrew setuptools python-3.4

我在运行 Yosemite (Mac OS X 10.10.1) 和 homebrew 的 Mac 上安装了 python 和 python3 和 python -m ensurepip --upgrade似乎没有像我预期的那样工作。
python -m ensurepip --upgrade不升级 pip 或 setuptools。
pip install --upgrade pip setuptools将 pip 升级到 6.0.7 并将 setuptools 升级到 12.0.5。

与 Python3 的结果相同。我是否误解了 ensurepip 的目的? ?

最佳答案

documentation :

This module does not access the internet. All of the components needed to bootstrap pip are included as internal parts of the package.



和(强调我的):

To ensure the installed version of pip is at least as recent as the one bundled with ensurepip, pass the --upgrade option

关于python-2.7 - `python -m ensurepip --upgrade` 似乎没有升级 pip 和 setuptools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28210566/

相关文章:

ssl - nginx v1.10.2 Passenger 403 Homebrew 升级

scala - 在 IntelliJ 中,我在哪里输入 Homebrew Scala 路径/usr/local/opt/scala/idea?

python - 由于导入错误,无法同时运行 python 2 和 3

python - 如何使用 Flask 在 PyCharm 中安装 Mysql-python 尤其是在 Windows 中

python-2.7 - 使用 pip 安装包的问题

centos7上请求的Python模块错误

python - 从 .txt 读取行,如果第一个和最后一个字符等于 X 和 Y,则在该字符串后添加一些文本

python - 如何知道从哪个python模块类导入的?

python - Xpath local-name() 中的属性

macos - 为 Mac 安装 PHP 7.1 时出错(使用 Homebrew)