Python - PIP install trouble shooting - PermissionError: [WinError 5] Access is denied -
i following error when using pip either install new packages or upgrade pip latest version. running pip on windows 8.1 machine python 3.4.
the message telling me don't have administrative permission on files (my account administrator account).
i appreciate thoughts on how resolve this, getting in way of installing packages , progressing python.
error message:
installing collected packages: pip found existing installation: pip 6.0.8 uninstalling pip-6.0.8: removing file or directory c:\program files (x86)\python\python34\lib\site-packages\pip-6.0.8.dist-info\description.rst cleaning up... exception: traceback (most recent call last): file "c:\program files (x86)\python\python34\lib\shutil.py", line 523, in move os.rename(src, real_dst) permissionerror: [winerror 5] access denied: 'c:\\program files (x86)\\python\\python34\\lib\\site-packages\\pip-6.0.8.dist-info\\description.rst' -> 'c:\\users\\user\\appdata\\local\\temp\\pip-uze_sc4k-uninstall\\program files (x86)\\python\\python34\\lib\\site-packages\\pip-6.0.8.dist-info\\description.rst' during handling of above exception, exception occurred: traceback (most recent call last): file "c:\program files (x86)\python\python34\lib\site-packages\pip\basecommand.py", line 232, in main status = self.run(options, args) file "c:\program files (x86)\python\python34\lib\site-packages\pip\commands\install.py", line 347, in run root=options.root_path, file "c:\program files (x86)\python\python34\lib\site-packages\pip\req\req_set.py", line 543, in install requirement.uninstall(auto_confirm=true) file "c:\program files (x86)\python\python34\lib\site-packages\pip\req\req_install.py", line 667, in uninstall paths_to_remove.remove(auto_confirm) file "c:\program files (x86)\python\python34\lib\site-packages\pip\req\req_uninstall.py", line 126, in remove renames(path, new_path) file "c:\program files (x86)\python\python34\lib\site-packages\pip\utils\__init__.py", line 316, in renames shutil.move(old, new) file "c:\program files (x86)\python\python34\lib\shutil.py", line 536, in move os.unlink(src) permissionerror: [winerror 5] access denied: 'c:\\program files (x86)\\python\\python34\\lib\\site-packages\\pip-6.0.8.dist-info\\description.rst'
for may run same issue:
run command prompt administrator. having administrator permissions in account not enough. in windows, things can run administrator right-clicking executable , selecting "run administrator". so, type "cmd" start menu, right click cmd.exe, , run administrator.
When you dont have admin privileges or other userspace directory to access, try to run the following command.
ReplyDeletepip install --user package-name