提示pip需要升级,但是升级后还是会提示需要升级,则需卸载pip后重装

提示pip需要升级,但是升级后还是会提示需要升级,则需卸载pip后重装_第1张图片
提示pip需要升级,但是升级后还是会提示需要升级,则需卸载pip后重装_第2张图片
(venv) E:\platformtools\automagic-master>pip uninstall pip
Uninstalling pip-10.0.1:
Would remove:
e:\platformtools\automagic-master\venv\lib\site-packages\pip-10.0.1-py3.6.egg
e:\platformtools\automagic-master\venv\scripts\pip-script.py
e:\platformtools\automagic-master\venv\scripts\pip.exe
e:\platformtools\automagic-master\venv\scripts\pip.exe.manifest
e:\platformtools\automagic-master\venv\scripts\pip3-script.py
e:\platformtools\automagic-master\venv\scripts\pip3.6-script.py
e:\platformtools\automagic-master\venv\scripts\pip3.6.exe
e:\platformtools\automagic-master\venv\scripts\pip3.6.exe.manifest
e:\platformtools\automagic-master\venv\scripts\pip3.exe
e:\platformtools\automagic-master\venv\scripts\pip3.exe.manifest
Proceed (y/n)? y
Exception:
Traceback (most recent call last):
File “D:\Program Files\Python3.6\lib\shutil.py”, line 550, in move
os.rename(src, real_dst)
OSError: [WinError 17] 系统无法将文件移到不同的磁盘驱动器。: ‘e:\platformtools\automagic-master\venv\scripts\pip.exe’ -> ‘C:\Users\ADMINI~1\AppData\Local\T
emp\pip-uninstall-y1nkwz_g\platformtools\automagic-master\venv\scripts\pip.exe’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “E:\platformtools\automagic-master\venv\lib\site-packages\pip-10.0.1-py3.6.egg\pip_internal\basecommand.py”, line 228, in main
File “E:\platformtools\automagic-master\venv\lib\site-packages\pip-10.0.1-py3.6.egg\pip_internal\commands\uninstall.py”, line 68, in run
File “E:\platformtools\automagic-master\venv\lib\site-packages\pip-10.0.1-py3.6.egg\pip_internal\req\req_install.py”, line 661, in uninstall
File “E:\platformtools\automagic-master\venv\lib\site-packages\pip-10.0.1-py3.6.egg\pip_internal\req\req_uninstall.py”, line 219, in remove
File “E:\platformtools\automagic-master\venv\lib\site-packages\pip-10.0.1-py3.6.egg\pip_internal\utils\misc.py”, line 273, in renames
File “D:\Program Files\Python3.6\lib\shutil.py”, line 565, in move
os.unlink(src)
PermissionError: [WinError 5] 拒绝访问。: ‘e:\platformtools\automagic-master\venv\scripts\pip.exe’

(venv) E:\platformtools\automagic-master>

使用 python -m pip uninstall pip 命令:提示pip需要升级,但是升级后还是会提示需要升级,则需卸载pip后重装_第3张图片
参考链接:https://www.runoob.com/w3cnote/python-pip-install-usage.html
提示pip需要升级,但是升级后还是会提示需要升级,则需卸载pip后重装_第4张图片
提示pip需要升级,但是升级后还是会提示需要升级,则需卸载pip后重装_第5张图片

你可能感兴趣的:(提示pip需要升级,但是升级后还是会提示需要升级,则需卸载pip后重装)