virtualenv ed

Creating a "virtual" python environment.

Setup ed

Install virtualenv:

sudo pip install virtualenv

Create the environment:

mkdir ENV
virtualenv ENV

Or, if you want to use a different python version:

virtualenv -p python3 ENV

Activate (making it the main environment in this shell):

source ENV/bin/activate
From now on, python, pip etc. are used from this directory.

Install packages:

pip install PACKAGES

Categories: Programmieren, Computer