Python 3#
pipenv#
venv#
Docs - https://docs.python.org/3/library/venv.html
Create Environment#
python3 -m venv /path/to/new/virtual/environment
Python 2#
Virtualenv#
virtualenv is the python package which creates virtual python environments so that different packages can be installed in isolation.
Install#
sudo easy_install virtualenv
Create a directory to hold your python virtual environments#
$ cd ~ $ mkdir Python
Create the virtual environment#
$ cd Python $ virtualenv django_env --no-site-packages
Activate the virtual environment#
$ cd ~/Python/django_env/ $ source bin/activate
From now on, you should see (django_env) at the start of your prompt.
Python