Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

easy_install.exe Permission Denied on Windows 8

Running command prompt as an administrator I try to run:

easy_install -U setuptools

It returns the following:

Searching for setuptools
Reading https://pypi.python.org/simple/setuptools/
Reading http://peak.telecommunity.com/snapshots/
Reading https://pypi.python.org/pypi/setuptools
Best match: setuptools 0.8
Processing setuptools-0.8-py2.7.egg
setuptools 0.8 is already the active version in easy-install.pth
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
error: C:\Python27\Scripts\easy_install.exe: Permission denied

I've spent the past few hours scouring the internet for possible solutions. I've tried messing with the UAC settings and have them set to Never Notify. Yet, I'm still getting this permission denied error.

like image 474
CKav Avatar asked Jul 11 '13 18:07

CKav


2 Answers

You can read the solution here.

Run the install.
After the error copy the easy_install .exe and .py to a temp dir (i.e. c:\temp).
Run the install again from there.

On windows, the easy_install binary is in-use during install so it can't overwrite itself. (Easy_install itself is part of the setuptools you're trying to install with itself ;)

like image 93
Rik Avatar answered Nov 13 '22 20:11

Rik


Another way would be to use the other python package manager: Pip.

easy_install pip    
pip install --upgrade setuptools

This gets around the "in-use" problem without having to move files around.

like image 8
hazzey Avatar answered Nov 13 '22 19:11

hazzey