`python -m ensurepip --upgrade` does not seem to be upgrading pip and setuptools

不打扰是莪最后的温柔 提交于 2019-12-31 02:48:09

问题


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 does not upgrade pip or setuptools.

pip install --upgrade pip setuptools upgrades pip to 6.0.7 and upgrades setuptools to 12.0.5.

Same results with Python3. Do I misunderstand the purpose of ensurepip?


回答1:


Per the documentation:

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

and (emphasis mine):

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



来源:https://stackoverflow.com/questions/28210566/python-m-ensurepip-upgrade-does-not-seem-to-be-upgrading-pip-and-setuptools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!