python3升级pip3


因为python默认升级pip的命令是:pip install --upgradepip,那python3应该如何升级呢(尤其是当系统中同时含有python2.7和python3的时候)

错误命令1:
pip3 install --upgrade pip
错误命令2:
pip3 install --upgrade pip3

正确命令:
python3 -m pip install --upgrade pip

因提示permission denied 没有权限,所以使用sudo,如下图所示:

python3升级pip3介绍到这里,更多python学习请参考编程字典python教程和问答部分,谢谢大家对编程字典的支持。


原文链接:https://blog.csdn.net/m0_38068876/article/details/108178388?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163141195716780262518834%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fnavwordall.%2522%257D&request_id=163141195716780262518834&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~navwordall~first_rank_ecpm_v1~rank_v29_ecpm-30-108178388.pc_search_insert_download&utm_term=python&spm=1018.2226.3001.4187