Access is denied when trying to pip install a package on Windows
How to set path for python 3.7.0? I tried the every possible way but it still shows the error!
Could not install packages due to an EnvironmentError: [WinError 5]
Access is denied: 'c:\program files (x86)\python37-32\lib\site-packages\pip-10.0.1.dist-info\entry_points.txt'
Consider using the
--user
option or check the permissions
Solution 1:
Add --user
to the command.
eg:
pip install -r requirements.txt --user
Solution 2:
Run your command Prompt on Admin-Mode in Windows,it will stop throwing errors for user-rights.
Steps:
On Windows, type "Cmd" on searchbox to search for command prompt.
When "Command Prompt" search result appears,right-click>Run as Administrator.