Tested on:Raspberry Pi 2; Raspberry Pi B+; Python 2.7
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
0

Virtual Environments simplify project management

A python environment is a container for all packages and applications which are required by a python project. By this, the chance of package interference as a result of a massive module library is greatly reduced.

Install virtualenv

Create a virtual environment

Control the environment
Activate the virtualenv with

and deactivate with

When the virtualenv is active, install all modules and packages required with the package manager pip. It’s possible to copy the virtual environment from one Raspberry Pi to another and the python project should run on it as long as all necessary configurations are setup and all device drivers are installed.

Links
Package manager pip: http://www.knight-of-pi.org/howto-install-the-python-package-manager-pip

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.

Comment

Time limit is exhausted. Please reload CAPTCHA.