Created
August 5, 2021 10:17
-
-
Save riccardo1980/095d27ed38670a6f697f61dc5133a924 to your computer and use it in GitHub Desktop.
Virtualenv managament
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
# 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