我尝试使用以下方法升级 pip:
(venv) C:\Users\Divyanshu Gupta\PycharmProjects\untitled>pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.0.3
Uninstalling pip-19.0.3:
Successfully uninstalled pip-19.0.3
Rolling back uninstall of pip
Moving to c:\users\divyanshu gupta\pycharmprojects\untitled\venv\lib\site-packages\pip-19.0.3-py3.8.egg
from C:\Users\Divyanshu Gupta\PycharmProjects\untitled\venv\Lib\site-packages\~ip-19.0.3-py3.8.egg
Moving to c:\users\divyanshu gupta\pycharmprojects\untitled\venv\scripts\pip-script.py
from C:\Users\Divyanshu Gupta\AppData\Local\Temp\pip-uninstall-y1i2neb1\pip-script.py
Moving to c:\users\divyanshu gupta\pycharmprojects\untitled\venv\scripts\pip.exe
from C:\Users\Divyanshu Gupta\AppData\Local\Temp\pip-uninstall-y1i2neb1\pip.exe
Moving to c:\users\divyanshu gupta\pycharmprojects\untitled\venv\scripts\pip.exe.manifest
from C:\Users\Divyanshu Gupta\AppData\Local\Temp\pip-uninstall-y1i2neb1\pip.exe.manifest
Moving to c:\users\divyanshu gupta\pycharmprojects\untitled\venv\scripts\pip3-script.py
from C:\Users\Divyanshu Gupta\AppData\Local\Temp\pip-uninstall-y1i2neb1\pip3-script.py
Moving to c:\users\divyanshu gupta\pycharmprojects\untitled\venv\scripts\pip3.8-script.py
from C:\Users\Divyanshu Gupta\AppData\Local\Temp\pip-uninstall-y1i2neb1\pip3.8-script.py
Moving to c:\users\divyanshu gupta\pycharmprojects\untitled\venv\scripts\pip3.8.exe
from C:\Users\Divyanshu …Run Code Online (Sandbox Code Playgroud)