通过Python的包管理工具Pip 卸载第三方工具包 出现错误,“WinError 5] 拒绝访问”,具体如下:
Uninstalling sqlparse-0.3.0:
Would remove:
c:\program files\python37\lib\site-packages\sqlparse-0.3.0.dist-info\*
c:\program files\python37\lib\site-packages\sqlparse\*
c:\program files\python37\scripts\sqlformat.exe
Proceed (y/n)? y
ERROR: Exception:
Traceback (most recent call last):
File "c:\program files\python37\lib\shutil.py", line 563, in move
os.rename(src, real_dst)
PermissionError: [WinError 5] 拒绝访问。: 'c:\\program files\\python37\\lib\\sit
e-packages\\sqlparse-0.3.0.dist-info\\' -> 'C:\\Temp\\pip-uninstall-2jlcbxg5'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\program files\python37\lib\site-packages\pip\_internal\cli\base_comma
nd.py", line 188, in main
status = self.run(options, args)
File "c:\program fi