Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set up Setuptools for Python 2.6 on Windows?

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?

like image 310
corvuscorax Avatar asked Nov 21 '08 16:11

corvuscorax


People also ask

How do I install Python setuptools on Windows?

Follow the below steps to install the Setuptools on Windows using the setup.py file: Step 1: Download the latest source package of Setuptools for Python3 from here. Step 2: Extract the downloaded package using the given command. Step 3: Go to the setuptools-60.2.

How do I install Python 2 setuptools?

The recommended way to install setuptools on Windows is to download ez_setup.py and run it. The script will download the appropriate . egg file and install it for you. For best results, uninstall previous versions FIRST (see Uninstalling).

How do I install setuptools a specific version?

To use a specific version of setuptools it is necessary to have it in both locations - in pyproject. toml and at the beginning of install_requires of setup.py. The tool like pip will use the version from pyproject. toml to build the project.


2 Answers

First Option - Online Installation (i.e. remaining 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 2) 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 2) and run python setup.py install from the corresponding dos (command) prompt

Please provide feedback.

like image 198
bhadra Avatar answered Sep 22 '22 01:09

bhadra


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.

like image 38
Rod Avatar answered Sep 24 '22 01:09

Rod