Virtualenv
Setup a virtualenv using virtualenvwrapper
Install virtualenvwrapper and create your first virtualenv
Install virtualenvwrapper
sudo pip3 install virtualenvwrapperEdit your bashrc file and add te following content.
export WORKON_HOME="$HOME/virtualenvs"
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.shThen run.
source ~/.bashrcCreate a virtualenv.
mkvirtualenv env1Setup .bashrc config
Add the following lines in your ~/.bashrc file.
# Virtualenvs
export WORKON_HOME=~/virtualenvs
source /usr/local/bin/virtualenvwrapper.shUseful commands
Change virtualenv
"Logout" from a virtualenv
"cd" to your virtualenv automatically
Run this only one time.
References
Last updated