How to Install Pip on TazPup

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

How to Install Pip on TazPup

#1 Post by s243a »

I wanted to install bottle on TazPup but it isn't available on the TazPup package manager. Often I install pip to install python packages. That wasn't available either. The solution is to first install setuptool and then install pip.

The sequence of commands are as follows:

Code: Select all

tazpkg get-install setuptools
easy_install pip
and now we are done. So say we wanted to install "bottle" we can now do:

Code: Select all

pip install bottle
Note that the tutorials for bottle usually have it setup up in a vitual environment. So instead of the above command one might do:

Code: Select all

$ virtualenv develop              # Create virtual environment
$ source develop/bin/activate     # Change default python to virtual one
(develop)$ pip install -U bottle  # Install bottle to virtual environment
but if one does it this way the'll have start the virtual environment before using bottle.

Post Reply