Python: pip installation

References:

http://www.pip-installer.org/en/latest/installing.html

The installation of pip depends on your system. For instance under ubuntu it is as easy as

sudo apt-get install python-pip

Another way to install it if you are familiar with virtualenv tool consists in creating a virtual environment since pip is installed into it automatically.

This does not require root access or modify your system Python installation. For instance:

virtualenv my_env
cd my_env
source ./bin/activate
# test if pip works
pip install pip

If you do not have virtualenv, you can still install pip easily by installing setuptools or distribute from your distribtution.

For instance you could try:

wget http://python-distribute.org/distribute_setup.py
python distribute_setup.py

Replace wget tool by curl under MacOsX

Under windows, you can google it. I have not tried myself but here is an example:

pip on windows

This entry was posted in Linux, Python and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *