Created
May 29, 2018 18:36
-
-
Save beatrizuezu/8d0306889a457594ac67326f75c913db to your computer and use it in GitHub Desktop.
config virtualevwrapper on bashrc or zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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