强制卸载pip以及安装老版本pip

由于pip19.2.3版本诸多问题, 决定卸载, 结果发现根本无法卸载, 提示以下错误信息:

C:\Users\abc>python -m pip uninstall pip
Uninstalling pip-19.2.3:
  Would remove:
    c:\program files\python38\lib\site-packages\pip-19.2.3.dist-info\*
    c:\program files\python38\lib\site-packages\pip\*
    c:\program files\python38\scripts\pip.exe
    c:\program files\python38\scripts\pip3.8.exe
    c:\program files\python38\scripts\pip3.exe
Proceed (y/n)? y
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\shutil.py", line 781, in move
    os.rename(src, real_dst)
PermissionError: [WinError 5] 拒绝访问。: 'c:\\program files\\python38\\lib\\site-packages\\pip-19.2.3.dist-info\\' -> 'C:\\Users\\abc\\AppData\\Local\\Temp\\pip-uninstall-flz7sdgb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\site-pack
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值