Tested on:Python 2.7; Python 3
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)

Installation and usage of the python package manager pip

Pip is a great package management tool for python. Pip gives access to all the great python packages from the online repository PyPi.

Boot your Raspberry Pi and execute in the terminal


for installing pip for Python 3.

Now, you can easily install the python modules from PyPi, for example the great code coverage measurement tool Coverage by typing

For installing a specific version, just add two equal signs followed by the version number:

To uninstall a package, use

To list all installed packages of the system or current virtual environment, type

Installing requirements from a file
If you have an requirements.txt file containing one module name per line like in the test-driven, you can install all these modules with

Pip Website: https://pip.pypa.io/en/latest/
PyPi online package Repository: https://pypi.python.org/pypi/
Coverage tutorial: http://www.knight-of-pi.org/using-coverage-on-a-raspberry-pi/
Virtual environment tutorial: http://www.knight-of-pi.org/virtual-environments-simplify-project-management/
Test-driven project setup: http://www.knight-of-pi.org/python-project-setup-test-driven-development/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


Time limit is exhausted. Please reload CAPTCHA.