如何更新Python pip? [英] How to update Python pip?

查看:452
本文介绍了如何更新Python pip?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不得不使用pip安装Python软件包和库,但是每次这样做,它都表明我使用的是pip的较早版本,并且可以通过运行命令

I've had to install Python packages and libraries using pip, but every time I do, it says I'm using an older version of pip, and that v18.1 is available by running the command

python -m pip install --upgrade pip

当我运行此命令时,它只是说同样的话.它显然无法更新,因为它已经过时了.有什么方法可以解决此问题,也许是通过手动更新它来解决?

When I run this command, it just says the same thing. It apparently can't update itself because it's outdated. Is there any way to get around this, maybe by manually updating it?

提前感谢社区!

更新:我使用的操作系统当前是Windows 10和Python 3.6.4.以下屏幕截图是运行命令时输出的内容.

Update: The OS I'm using is currently Windows 10 and Python 3.6.4. The following screenshot is what outputs when running the command.

推荐答案

升级点

在Linux或macOS上:

On Linux or macOS:

pip install -U pip

在Windows上:

python -m pip install -U pip

这篇关于如何更新Python pip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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