`python -m ensurepip --upgrade` 似乎没有升级 pip 和 setuptools
`python -m ensurepip --upgrade` does not seem to be upgrading pip and setuptools
我在 Mac 运行 Yosemite (Mac OS X 10.10.1) 并且 homebrew 安装 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
我在 Mac 运行 Yosemite (Mac OS X 10.10.1) 并且 homebrew 安装 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