I am trying to run pip install mitmproxy
on Windows, but I keep getting access denied, even with cmd
and PowerShell
using the Run as Administrator
option.
WindowsError: [Error 5] Access is denied: 'c:\\users\\bruno\\appdata\\local\\temp\\easy_install-0fme6u\\cryptography-0.9.1\\.eggs\\cffi-1.1.2-py2.7-win-amd64.egg\\_cffi_backend.pyd'
How can I make this work?
Just close all the python files opened. And try to run as administrator. It will work.
e.g.
Change your Python installation folder's security permissions by:
If you open
cmd
as admin; then you can do the following:If Python is set in your
PATH
, then:Opening command prompt As Administrator just worked for me without using Python executable. Right click on command prompt shortcut and choose "Run as Administrator". Then run the following command.