C:\Users\******>pip install --upgrade pip
Collecting pip
Using cached pip-20.3.3-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'e:\\python39\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.
You should consider upgrading via the 'pip install --upgrade pip' command.
提示有新版本了,可以升级pip(但是注意要把pip命令替换成pip3)
pip3 install --upgrade pip
--------------------------------------------------------------------------
解决python “No module named pip” python 升级后导致不能使用原来的pip命令 windows平台:
cmd中输入命令:python -m ensurepip
未经允许不得转载:OZ分享-吉家大宝官方博客 » 解决python “No module named pip”的方法