python -m surepip --upgrade似乎没有升级pip和setuptools [英] `python -m ensurepip --upgrade` does not seem to be upgrading pip and setuptools
问题描述
我在运行优胜美地(Mac OS X 10.10.1)和自制软件的Mac上安装了python,python3和
I am on a Mac running Yosemite (Mac OS X 10.10.1) and homebrew installed python and python3 and python -m ensurepip --upgrade
does not seem to be working as I would have expected.
python -m ensurepip --upgrade
不会升级pip或setuptools.
python -m ensurepip --upgrade
does not upgrade pip or setuptools.
pip install --upgrade pip setuptools
将pip升级到6.0.7,并将setuptools升级到12.0.5.
pip install --upgrade pip setuptools
upgrades pip to 6.0.7 and upgrades setuptools to 12.0.5.
Python3的结果相同.我是否误解了 ensurepip 的目的?
Same results with Python3. Do I misunderstand the purpose of ensurepip?
推荐答案
根据文档:
该模块无法访问互联网.引导
pip
所需的所有组件都包含在软件包的内部.
This module does not access the internet. All of the components needed to bootstrap
pip
are included as internal parts of the package.
和(强调我的意思):
要确保
pip
的安装版本至少与ensurepip
捆绑的版本相同,请传递--upgrade
选项
To ensure the installed version of
pip
is at least as recent as the one bundled withensurepip
, pass the--upgrade
option
这篇关于python -m surepip --upgrade似乎没有升级pip和setuptools的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!