I have Windows 7 (64-bit) operating system. I have installed python. I want to install setuptools (for python). In their website (https://pypi.python.org/pypi/setuptools) it is written: "Download ez_setup.py and run it;" I download that file, save it to my hard drive. Then when I click (right mouse button) and select "Open with"-> "python", a black console screen appears for a second, then disappears. And that's all. What is wrong and how can I install that software?
Asked
Active
Viewed 4,927 times
1
-
2hold shift then right-click in the explorer window to then select "Open Console window here". Then run the command from the console to see the error. – monkut Feb 21 '13 at 03:01
1 Answers
4
- Open a command prompt (Start menu -> cmd.exe)
Navigate to the directory where ez_setup.py is saved, e.g.:
cd C:\Users\You\Downloads
Run it (C:\Python27\ should already be on your %PATH%; if it's not, add it -- see below):
python ez_setup.py
Read the output. If it worked, you should be able to install packages like so:
C:\Python27\Scripts\easy_install jinja2
Add the path to
easy_install
to your %PATH% so that you can use it easily from any directory:- Control Panel -> System -> Advanced system settings
- Click the
Environment variables...
button - Edit PATH and append
;C:\Python27\Scripts\
to the end (substitute your Python version) - Click OK. Note that changes to the PATH are only reflected in command prompts opened after the change took place.
If something goes wrong, the command prompt will remain open after the program finishes, so you'll be able to read the error and use it to resolve the problem.

Cameron
- 96,106
- 25
- 196
- 225
-
Thank you so much! Only after your complete explanation I understood how all these things work! – user1460819 Feb 21 '13 at 03:27
-
Hi, I'm trying to do this but I'm behind a proxy server so this 'python ez_setup.py' is failing because as I saw ez_setup is using powershell to download the file... is there any way to do this behind a proxy server? – Geykel Dec 11 '13 at 19:35
-
@Geykel: [Apparently there is](http://stackoverflow.com/a/18790045/21475)! Never tried it myself, though. – Cameron Dec 12 '13 at 01:55