pip install access denied on Windows
In case of windows, in cmd try to run pip install using python executable
e.g.
python -m pip install mitmproxy
this should work, at least it worked for me for other package installation.
Change your Python installation folder's security permissions by:
- Open a Python shell
- Go to task manager
- Find the python process
- Right-click and open location
- The folder will open in explorer, go up a directory
- Right-click the folder and select properties
- Click the security tab and hit 'edit'
- Add everyone and give them permission to Read and Write.
- Save your changes
If you open cmd
as admin; then you can do the following:
If Python is set in your PATH
, then:
python -m pip install mitmproxy
Personally, I found that by opening cmd
as admin then runpython -m pip install mitproxy
seems to fix my problem.
Note:- I installed python through chocolatey