Skip to main content

Easily download, build, install, upgrade, and uninstall Python packages

Project description

Change History.

Installation Instructions

The recommended way to bootstrap setuptools on any system is to download ez_setup.py and run it using the target Python environment. Different operating systems have different recommended techniques to accomplish this basic routine, so below are some examples to get you started.

Setuptools requires Python 2.6 or later. To install setuptools on Python 2.4 or Python 2.5, use the bootstrap script for Setuptools 1.x.

The link provided to ez_setup.py is a bookmark to bootstrap script for the latest known stable release.

Windows (Powershell 3 or later)

For best results, uninstall previous versions FIRST (see Uninstalling).

Using Windows 8 (which includes PowerShell 3) or earlier versions of Windows with PowerShell 3 installed, it’s possible to install with one simple Powershell command. Start up Powershell and paste this command:

> (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python -

You must start the Powershell with Administrative privileges or you may choose to install a user-local installation:

> (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python - --user

If you have Python 3.3 or later, you can use the py command to install to different Python versions. For example, to install to Python 3.3 if you have Python 2.7 installed:

> (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | py -3 -

The recommended way to install setuptools on Windows is to download ez_setup.py and run it. The script will download the appropriate distribution file and install it for you.

Once installation is complete, you will find an easy_install program in your Python Scripts subdirectory. For simple invocation and best results, add this directory to your PATH environment variable, if it is not already present. If you did a user-local install, the Scripts subdirectory is $env:APPDATA\Python\Scripts.

Windows (simplified)

For Windows without PowerShell 3 or for installation without a command-line, download ez_setup.py using your preferred web browser or other technique and “run” that file.

Unix (wget)

Most Linux distributions come with wget.

Download ez_setup.py and run it using the target Python version. The script will download the appropriate version and install it for you:

> wget https://bootstrap.pypa.io/ez_setup.py -O - | python

Note that you will may need to invoke the command with superuser privileges to install to the system Python:

> wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python

Alternatively, Setuptools may be installed to a user-local path:

> wget https://bootstrap.pypa.io/ez_setup.py -O - | python - --user

Note that on some older systems (noted on Debian 6 and CentOS 5 installations), wget may refuse to download ez_setup.py, complaining that the certificate common name *.c.ssl.fastly.net does not match the host name bootstrap.pypa.io. In addition, the ez_setup.py script may then encounter similar problems using wget internally to download setuptools-x.y.zip, complaining that the certificate common name of www.python.org does not match the host name pypi.python.org. Those are known issues, related to a bug in the older versions of wget (see Issue 59). If you happen to encounter them, install Setuptools as follows:

> wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
> python ez_setup.py --insecure

Unix including Mac OS X (curl)

If your system has curl installed, follow the wget instructions but replace wget with curl and -O with -o. For example:

> curl https://bootstrap.pypa.io/ez_setup.py -o - | python

Advanced Installation

For more advanced installation options, such as installing to custom locations or prefixes, download and extract the source tarball from Setuptools on PyPI and run setup.py with any supported distutils and Setuptools options. For example:

setuptools-x.x$ python setup.py install --prefix=/opt/setuptools

Use --help to get a full options list, but we recommend consulting the EasyInstall manual for detailed instructions, especially the section on custom installation locations.

Downloads

All setuptools downloads can be found at the project’s home page in the Python Package Index. Scroll to the very bottom of the page to find the links.

In addition to the PyPI downloads, the development version of setuptools is available from the Bitbucket repo, and in-development versions of the 0.6 branch are available as well.

Uninstalling

On Windows, if Setuptools was installed using an .exe or .msi installer, simply use the uninstall feature of “Add/Remove Programs” in the Control Panel.

Otherwise, to uninstall Setuptools or Distribute, regardless of the Python version, delete all setuptools* and distribute* files and directories from your system’s site-packages directory (and any other sys.path directories) FIRST.

If you are upgrading or otherwise plan to re-install Setuptools or Distribute, nothing further needs to be done. If you want to completely remove Setuptools, you may also want to remove the ‘easy_install’ and ‘easy_install-x.x’ scripts and associated executables installed to the Python scripts directory.

Using Setuptools and EasyInstall

Here are some of the available manuals, tutorials, and other resources for learning about Setuptools, Python Eggs, and EasyInstall:

Questions, comments, and bug reports should be directed to the distutils-sig mailing list. If you have written (or know of) any tutorials, documentation, plug-ins, or other resources for setuptools users, please let us know about them there, so this reference list can be updated. If you have working, tested patches to correct problems or add features, you may submit them to the setuptools bug tracker.

Credits

  • The original design for the .egg format and the pkg_resources API was co-created by Phillip Eby and Bob Ippolito. Bob also implemented the first version of pkg_resources, and supplied the OS X operating system version compatibility algorithm.

  • Ian Bicking implemented many early “creature comfort” features of easy_install, including support for downloading via Sourceforge and Subversion repositories. Ian’s comments on the Web-SIG about WSGI application deployment also inspired the concept of “entry points” in eggs, and he has given talks at PyCon and elsewhere to inform and educate the community about eggs and setuptools.

  • Jim Fulton contributed time and effort to build automated tests of various aspects of easy_install, and supplied the doctests for the command-line .exe wrappers on Windows.

  • Phillip J. Eby is the seminal author of setuptools, and first proposed the idea of an importable binary distribution format for Python application plug-ins.

  • Significant parts of the implementation of setuptools were funded by the Open Source Applications Foundation, to provide a plug-in infrastructure for the Chandler PIM application. In addition, many OSAF staffers (such as Mike “Code Bear” Taylor) contributed their time and stress as guinea pigs for the use of eggs and setuptools, even before eggs were “cool”. (Thanks, guys!)

  • Tarek Ziadé is the principal author of the Distribute fork, which re-invigorated the community on the project, encouraged renewed innovation, and addressed many defects.

  • Since the merge with Distribute, Jason R. Coombs is the maintainer of setuptools. The project is maintained in coordination with the Python Packaging Authority (PyPA) and the larger Python community.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

setuptools-18.3.1.zip (670.6 kB view details)

Uploaded Source

setuptools-18.3.1.tar.gz (626.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

setuptools-18.3.1-py3.4.egg (662.1 kB view details)

Uploaded Egg

setuptools-18.3.1-py2.py3-none-any.whl (462.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file setuptools-18.3.1.zip.

File metadata

  • Download URL: setuptools-18.3.1.zip
  • Upload date:
  • Size: 670.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for setuptools-18.3.1.zip
Algorithm Hash digest
SHA256 560ade704be5d000b50e273e4a3f6e0272f3b465703c48a09fb3ddd5e2d35637
MD5 c3b735ed07bd38e3145c165ac27b311f
BLAKE2b-256 22266fdaea27dbe43163d63871f31cfce9a928520f616c1cbb5c98f2a37920a6

See more details on using hashes here.

File details

Details for the file setuptools-18.3.1.tar.gz.

File metadata

  • Download URL: setuptools-18.3.1.tar.gz
  • Upload date:
  • Size: 626.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for setuptools-18.3.1.tar.gz
Algorithm Hash digest
SHA256 2fa230727104b07e522deec17929e84e041c9047e392c055347a02b0d5ca874d
MD5 748187b93152fa60287dfb896837fd7c
BLAKE2b-256 868ac4666b05c74e840eb9b09d28f4e7ae76fc9075e8c653d0eb4d265a5b49d9

See more details on using hashes here.

File details

Details for the file setuptools-18.3.1-py3.4.egg.

File metadata

File hashes

Hashes for setuptools-18.3.1-py3.4.egg
Algorithm Hash digest
SHA256 ccd736258f19370ee407da5c410fb6f7ee28e0e40d389a6f2d27dc6d4c9ff75b
MD5 a7fa2faf54786ab139ed7a02b2bce06a
BLAKE2b-256 89ea4fb7162ef9244471947676d549ef1603c67dfd257427c0549b51357a1e5a

See more details on using hashes here.

File details

Details for the file setuptools-18.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for setuptools-18.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 08e2b4c6d4bd2fa9b75d41d4bb8903967dec91d9ec215bab0c9c2624c54b251b
MD5 a21a4d02d0bab2eac499cca72faeb076
BLAKE2b-256 09f31dde395f7d8416510d276e5f4ccafd1ea3690a14e2e7af1dc5481d78e239

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page