更新pip指令:
python -m pip install --upgrade pip
运行后控制台报错: No module named 'pip'
按顺序运行下面命令
python -m ensurepip
easy_install pip
运行完后,提示:
Collecting pip
Installing collected packages: pip
Successfully installed pip-19.2.3
然后在执行更新pip指令:
python -m pip install --upgrade pip
参考文章:https://blog.csdn.net/weixin_44438120/article/details/106459531