python -m surepip --upgrade似乎没有升级pip和setuptools [英] `python -m ensurepip --upgrade` does not seem to be upgrading pip and setuptools

查看:83
本文介绍了python -m surepip --upgrade似乎没有升级pip和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 with ensurepip, pass the --upgrade option

这篇关于python -m surepip --upgrade似乎没有升级pip和setuptools的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆