如何升级 pip

 

[root@VM-8-12-centos ~]# which pip3
/usr/bin/pip3
[root@VM-8-12-centos ~]# pip3 -V
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)

[root@VM-8-12-centos ~]# pip3 install --upgrade pip
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting pip
  Downloading http://mirrors.tencentyun.com/pypi/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
    100% |████████████████████████████████| 1.7MB 69.6MB/s
Installing collected packages: pip
Successfully installed pip-21.3.1
You are using pip version 21.3.1, however version 24.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@VM-8-12-centos ~]# pip3 -V
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
pip 21.3.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)

[root@VM-8-12-centos ~]# which pip3
/usr/local/bin/pip3
/usr/bin/pip3

[root@VM-8-12-centos ~]# ll /usr/bin/pip3
-rwxr-xr-x 1 root root 407 Oct 14  2020 /usr/bin/pip3
[root@VM-8-12-centos ~]# ll /usr/local/bin/pip3
-rwxr-xr-x 1 root root 225 Aug 30 11:20 /usr/local/bin/pip3

 

posted @   emanlee  阅读(13)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
历史上的今天:
2022-09-20 Vue 文件夹目录及配置文件
2022-09-20 vue.js下载依赖包node_modules
2022-09-20 Vue的导入(import)和导出(export、export default)
2022-09-20 ES6模块之export和import详解
2022-09-20 SvgIcon svg-icon
2021-09-20 Python函数传参是传值还是传引用?
2020-09-20 python 带参数 单步执行 (调试 pdb)
点击右上角即可分享
微信分享提示