我在运行 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 withensurepip
, pass the--upgrade
option
关于python-2.7 - `python -m ensurepip --upgrade` 似乎没有升级 pip 和 setuptools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28210566/