Skip to content

Instantly share code, notes, and snippets.

@beatrizuezu
Created May 29, 2018 18:36
Show Gist options
  • Save beatrizuezu/8d0306889a457594ac67326f75c913db to your computer and use it in GitHub Desktop.
Save beatrizuezu/8d0306889a457594ac67326f75c913db to your computer and use it in GitHub Desktop.
config virtualevwrapper on bashrc or zshrc
#set where virutal environments will live
export WORKON_HOME=$HOME/.Envs
# ensure all new environments are isolated from the site-packages directory
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
# use the same directory for virtualenvs as virtualenvwrapper
export PIP_VIRTUALENV_BASE=$WORKON_HOME
# makes pip detect an active virtualenv and install to it
export PIP_RESPECT_VIRTUALENV=true
if [[ -r /usr/local/bin/virtualenvwrapper.sh ]]; then
source /usr/local/bin/virtualenvwrapper.sh
else
echo "WARNING: Can't find virtualenvwrapper.sh"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment