Juicy lil' bytes

Pip Installer | a Simple Pip Python Package Manager Installer

Pip Installer allows you to install the Python setuptools and pip packages on Unix (including Mac OSX) and Linux platforms with a single command.

Install Setuptools and Pip

Simply pipe the remote Python install script to a local Python interpreter and Pip Installer will take care of the rest. Here is how you do it with cURL:

Unix + Linux

1
curl "https://raw.github.com/chrissimpkins/pip-installer/master/pipinstall.py" | python

What it Does

The script executes the install scripts provided by the setuptools and pip projects and then upgrades the setuptools package to the current release.

When you run Pip Installer by piping the remote script to the Python interpreter, it pipes the setuptools install script to the Python interpreter:

1
os.system("curl 'https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py' | python")

then it pipes the pip install script to the Python interpreter:

1
os.system("curl 'https://raw.github.com/pypa/pip/master/contrib/get-pip.py' | python")

and finally, it upgrades setuptools to the current release version with your new pip install:

1
os.system("pip install --upgrade setuptools")

Use Pip

After running this install script, you can use pip to install a Python package:

1
pip install <package-name>

or upgrade a Python package:

1
pip install --upgrade <package-name>

from the Python Package Index (PyPI).

Here is a link to the Pip Installer project repository if you would prefer to save the files locally.