如何升级 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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 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)