views:

20241

answers:

13

Is there any way to install setuptools for python 2.6 in Windows without having an .exe installer?

There isn't one built at the moment, and the maintainer of setuptools has stated that it's probable be a while before he'll get to it.

Does anyone know of a way to install it anyway?

+66  A: 

Online Installation (i.e. remain connected to the Internet during the entire installation process)

  1. Download setuptools-0.6c9.tar.gz
  2. Use 7-zip to extract it to a folder(directory) outside your Windows Python installation folder
  3. Go the folder (refer step 3) and run ez_setup.py from the corresponding dos (command) prompt
  4. Ensure that your PATH includes the appropriate C:\Python2X\Scripts directory

Second Option:

  1. Download setuptools-0.6c9.tar.gz
  2. Download setuptools-0.6c9-py2.6.egg to a folder(directory) outside your Windows Python installation folder
  3. Use 7-zip to extract ez_setup.py in the same folder as setuptools-0.6c9-py2.6.egg
  4. Go to the corresponding dos prompt and run python ez_setup.py setuptools-0.6c9-py2.6.egg from the command prompt
  5. Ensure that your PATH includes the appropriate C:\Python2X\Scripts directory

Third Option (assuming that you have Visual Studio 2005 or MinGW on your machine)

  1. Download setuptools-0.6c9.tar.gz
  2. Use 7-zip to extract it to a folder(directory) outside your Windows Python installation folder
  3. Go the folder (refer step 3) and run python setup.py install from the corresponding dos (command) prompt

Please provide feedback.

bhadra
Thanks a lot, the second option worked like a charm.
corvuscorax
The last one worked for me.
dummy
Option 3 worked great for me as well, thanks!
Electrons_Ahoy
I had to use option 3 to get this to work.
Dan Olson
Option #2 worked great for me. Maybe remove option #1 since it doesn't seem to have worked for any commenter?
kamens
Option 1 worked for me.
DrJokepu
setuptools link is broken? should be http://pypi.python.org/pypi/setuptools/0.6c9
Jason S
this is probably the most complete answer I've ever seen on SO. Here's the corrected link: http://pypi.python.org/pypi/setuptools
aronchick
Third option worked for me, first one did not.Also, the text "(refer step 3)" should be replaced by "(refer to step 2)" in both cases.
Johannes Hoff
The first did not work for me, but the second one did. Thanks!
Matthew Blackford
This is awesome. Thank you. I can't understand why the setuptools project wouldn't just distribute a 2.6 win version
matt b
+4  A: 

I got it working quickly by downloading the source and then running (from the extracted directory):

python.exe setup.py bdist_wininst

That builds dist\setuptools-0.6c9.win32.exe, which is exactly the installer you're looking for.

will-mvn
That worked for me.
roomaroo
+33  A: 

You could download and run http://peak.telecommunity.com/dist/ez_setup.py. This will download and install setuptools.

Rod
Nice and simple - worked fine for me - thanks :-)
Jon Cage
works great and everything is in C:\Python2X\Scripts directory
Ib33X
Needless to say that HTTP_PROXY env variable must be set in case of connecting through a proxy
antispam
Much easier than the other options. Love it.
Jweede
didn't work for me
GreenRails
Just to detail a bit:1. Download http://peak.telecommunity.com/dist/ez_setup.py2. Double click it if Python is associated to *.py files, or execute "python ez_setup.py" for the command-prompt for a portable Python for example)3. Done, typing "easy_install" command should now work.
Wernight
Way easier, thanks.
Tom
+7  A: 

The Nov. 21 answer didn't work for me. I got it working on my 64 bit Vista machine by following the Method 1 instructions, except for Step 3 I typed:

setup.py install

So, in summary, I did:

  1. Download setuptools-0.6c9.tar.gz
  2. Use 7-zip to extract it to a folder (directory) outside your Windows Python installation folder
  3. At a DOS (command) prompt, cd to your the newly created setuptools-0.6c9 folder and type "setup.py install" (without the quotes).
  4. Ensure that your PATH includes the appropriate C:\Python2X\Scripts directory
I also had to do this for Vista x64
I didn't seem to have needed tht PATH thing to install packages later?
Jurgen
A: 

My advice is to wait until Python 2.6.2 to use Python 2.6 on Windows. There are still some bugs that make it less than ideal (this one is particularly nasty). Personally, I wasn't able to get setuptools working totally well on Vista x64 even after installing from source. Under Python 2.5.4, I haven't had any problems though.

Jason Baker
+1  A: 

The "first option" (4 steps: download, extract, run, verify PATH) didn't work on my Windows Server 2008 x64 machine with Python 2.6 32 bit installed, nor did it work on my Vista x64 machine with Python 2.6 32 bit installed.

The "second option (5 steps: download, extract, extract, run, verify PATH) worked on both Windows Server 2008 x64 and on Windows Vista x64.

Thanks a bunch for providing the instructions!

+1  A: 

Just installed setuptools as follows:

  1. Downloaded http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c9.tar.gz#md5=3864c01d9c719c8924c455714492295e , and extracted to a folder outside of my Python installation.
  2. command prompt, then cd into that folder.
  3. enter python setup.py install

That will install from the source into your python's site-packages folder and any other steps needed. This was on Windows XP SP2.

NathanD
A: 

Second option worked for me.

Two notes:

a. After installing, when you using easy_install in vista, do so as administrator. (Right click on your command line shortcut and click "run as administrator"). I had trouble trying to run easy_install without doing that.

b. He means use ez_setup from setuptools-0.6c9.tar.gz

addition: if you can't give the permission. just copy the .py file and easy_install.exe to a temp directory and run it there.
Comptrol
A: 

Option 2 worked. Thanks.

Hugo Estrada
+1  A: 

OP option 1 did not work for me.

However doing setup.py install as mentioned by NathanD did do the trick.

Maybe that should become option 1?

Werner

yep, opt 1 needs to be the way described by Werner. worked for me too.
Gnudiff
+3  A: 

I'm able to find the EXE doing google,

you can simply download it from following URL, and double click and install....

http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11.win32-py2.6.exe#md5=1509752c3c2e64b5d0f9589aafe053dc

Tumbleweed
Of course, that file was uploaded just a few weeks before you found it, and a full year after the OP wanted it. Nevertheless, it is now the best option, imo.
Xiong Chiamiov
A: 

ActivePython already includes setuptools (Distribute actually), along with pip and virtualenv.

Sridhar Ratnakumar
A: 

setuptools has been updated: http://pypi.python.org/pypi/setuptools/0.6c11

Tommy B