Last active
September 3, 2021 17:26
-
-
Save meetnick/5a7e7e4b165fe2d7349f25a177e52a77 to your computer and use it in GitHub Desktop.
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
sudo -H pip3 install virtualenvwrapper | |
export WORKON_HOME=$HOME/.virtualenvs | |
mkdir -p $WORKON_HOME | |
if ! grep -q VIRTUALENV_ALREADY_ADDED $HOME/.bashrc; then | |
echo "# VIRTUALENV_ALREADY_ADDED" >> $HOME/.bashrc | |
echo "WORKON_HOME=$HOME/.virtualenvs" >> $HOME/.bashrc | |
echo "export VIRTUALENV_PYTHON=/usr/bin/python3" >> $HOME/.bashrc | |
echo "VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> $HOME/.bashrc | |
echo "source /usr/local/bin/virtualenvwrapper.sh" >> $HOME/.bashrc | |
fi | |
source $HOME/.bashrc | |
source /usr/local/bin/virtualenvwrapper.sh | |
# Commands | |
# mkvirtualenv --python=`which python3` env_name | |
# rmvirtualenv env_name | |
# workon env_name | |
# deactivate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment