Reputation: 5940
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 will probably be a while before he'll get to it.
Does anyone know of a way to install it anyway?
Upvotes: 85
Views: 91495
Reputation: 12971
First Option - Online Installation (i.e. remaining connected to the Internet during the entire installation process):
Second Option:
Third Option (assuming that you have Visual Studio 2005 or MinGW on your machine)
Please provide feedback.
Upvotes: 105
Reputation: 1590
Python has everything on board to do this.
from https://pypi.python.org/pypi/setuptools#installing-and-using-setuptools I got the URL to the ez_setup.py: https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
instead downloading it and fiddling with the file we can do this from the console:
import urllib
url = 'https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py'
ezcode = urllib.urlopen(url).read()
exec(ezcode)
Upvotes: 0
Reputation: 509
You could download and run http://peak.telecommunity.com/dist/ez_setup.py. This will download and install setuptools.
[update]
This script no longer works - the version of setuptools the it downloads is not at the URI specified in ez_setup.py -navigate to http://pypi.python.org/packages/2.7/s/setuptools/ for the latest version - the script also does some md5 checking, I haven't looked into it any further.
Upvotes: 50
Reputation: 60604
The easiest setuptools installation option is to use the pre-packaged Windows Installer.
for 32-bit Python on Windows, the official setuptools page has been updated and has windows installers for Python 2.6 and 2.7:
for 64-bit Python on Windows, setuptools Windows installers are available here:
Upvotes: 1
Reputation: 85372
ActivePython already includes setuptools (Distribute actually), along with pip and virtualenv.
Upvotes: -1
Reputation: 14335
I'm able to find the EXE doing google,
you can simply download it from following URL, and double click and install....
Upvotes: 6
Reputation:
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
Upvotes: 1
Reputation:
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
Upvotes: 0
Reputation: 8231
Just installed setuptools as follows:
That will install from the source into your python's site-packages folder and any other steps needed. This was on Windows XP SP2.
Upvotes: 2
Reputation: 41
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!
Upvotes: 1
Reputation: 198577
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.
Upvotes: 0
Reputation:
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:
Upvotes: 9
Reputation: 659
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.
Upvotes: 5