C:\Users\boring>pip install --upgrade pip
Collecting pip
Downloading pip-20.2.3-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 33 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'C:\\Users\\boring\\AppData\\Local\\Temp\\pip-uninstall-k0tqadug\\pip.exe'
Consider using the `--user` option or check the permissions.
解决办法:
python -m pip install -U pip