我正在尝试更新pip,我在命令行上得到了这个。 还要获得升级消息。
Exception:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python36-32\lib\shutil.py", line 544, in move
os.rename(src, real_dst)
PermissionError: [WinError 5] Access is denied: 'c:\\program files (x86)\\python36-32\\lib\\site-packages\\pip-9.0.1.dist-info\\description.rst' -> 'C:\\Users\\MANUEL~1\\AppData\\Local\\Temp\\pip-uw3vmwny-uninstall\\program files (x86)\\python36-32\\lib\\site-packages\\pip-9.0.1.dist-info\\description.rst'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\req\req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\req\req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\req\req_uninstall.py", line 115, in remove
renames(path, new_path)
File "C:\Program Files (x86)\Python36-32\lib\site-packages\pip\utils\__init__.py", line 267, in renames
shutil.move(old, new)
File "C:\Program Files (x86)\Python36-32\lib\shutil.py", line 559, in move
os.unlink(src)
PermissionError: [WinError 5] Access is denied: 'c:\\program files (x86)\\python36-32\\lib\\site-packages\\pip-9.0.1.dist-info\\description.rst'
我需要做些什么? 谢谢!
答案 0 :(得分:1)
只需以管理员身份运行命令提示符