tags:

views:

299

answers:

3

I'm having a hard time setting up python packages. EasyInstall from SetupTools is supposed to help that, but they don't have an executable for Python 2.6.

For instance to install Mechanize, I'm just supposed to put the Mechanize folder in C:\Python24\Lib\site-packages according to INSTALL.txt, but runnning the tests does not work. Can someone help shed some light on this? Thanks!

+4  A: 

You don't need the executable for setuptools. You can download the source code, unpack it, and run python setup.py install.

Lennart Regebro
Thanks for your response! Where do I unpack it and where would I run that command?
echoblaze
If you downloaded the tar file, just unpack it with a program like WinRAR. Once you've done that, open up the command prompt and navigate to the folder where it was unpacked (You'll know you're at the right spot if you see a `setup.py` file). From there you can run `python setup.py install` and it will install it for you.
Evan Fosmark
+7  A: 

This is a good tutorial on how to get easy_install on windows. The short answer: add C:\Python26\Scripts (or whatever python you have installed) to your PATH.

goldenratio
+1 hey thanks for linking to my article.
Tom Willis
A: 

You can also just download and run ez_setup.py, though the SetupTools documentation no longer suggests this. Worked fine for me as recently as 2 weeks ago.

Kevin Horn