Quick steps of setting up and using python virtualenv.

$ sudo pip install virtualenv
$ mkdir ~/PythonEnvs/
$ virtualenv ~/PythonEnvs/env1/
$ cd ~/PythonEnvs/env1/
$ ls
  bin include lib
$ source bin/activate
(env1)$ =>now you are in the virtual env
// To leave the virtual env
$ deactivate
BACK TO TOP
Post tagged with: python