Setting Virtual Environment in Linux
To set up a Virtual Environment, you first need to install “virtualenvwrapper”.
1
| |
or
1
| |
Setup:
Create a directory to hold the virtual environments.
1
| |
Now,make a environment variable which has the path of .virtualenvs
1
| |
Next run the shell script virtualenvwrapper.sh
1
| |
Run: workon
1
| |
A list of environments, empty, is printed.
Run: mkvirtualenv temp. This includes A virtual environment “temp”.
1
| |
Run: workon temp.
1
| |
The virtual environment is activated.