Skip to content

Instantly share code, notes, and snippets.

@sitle
Last active December 24, 2015 18:09
Show Gist options
  • Save sitle/6840537 to your computer and use it in GitHub Desktop.
Save sitle/6840537 to your computer and use it in GitHub Desktop.
Installation virtualenv python

Installation des pré-requis :

sudo apt-get install python-setuptools
sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper

Dans le fichier ~/.bashrc, ajoutez à la fin du fichier :

export WORKON_HOME=~/.virtualenvs
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh

Activation des modifications :

source ~/.bashrc

Utilisation :

mkvirtualenv VOTRE_ENVIRONNEMENT1
mkvirtualenv VOTRE_ENVIRONNEMENT2
workon VOTRE_ENVIRONNEMENT1
workon VOTRE_ENVIRONNEMENT2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment