Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save riccardo1980/095d27ed38670a6f697f61dc5133a924 to your computer and use it in GitHub Desktop.
Save riccardo1980/095d27ed38670a6f697f61dc5133a924 to your computer and use it in GitHub Desktop.
Virtualenv managament
# Python3
VENV_NAME=.venv
python3 -m venv $VENV_NAME --copies
. ${VENV_NAME}/bin/activate
python -m pip install --upgrade pip
# Python 2
VENV_NAME=.venv
pip install virtualenv
virtualenv -p $(which python2) $VENV_NAME
. ${VENV_NAME}/bin/activate
python -m pip install --upgrade pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment