Created
May 12, 2021 05:01
-
-
Save arnabdas/53fff3bf137aad87fba79a1260d0ba5b to your computer and use it in GitHub Desktop.
Create Python Virtual Env
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
#### Python Virtual Env Config #### | |
export WORKON_HOME=$HOME/.virtualenvs | |
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 | |
. $HOME/.local/bin/virtualenvwrapper.sh | |
export PATH=$HOME/.local/bin:$PATH | |
#### Python Virtual Env Config #### |
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
mkdir .virtualenv | |
sudo apt install python3-pip | |
pip3 -V | |
pip3 install virtualenvwrapper | |
vim .bashrc | |
source .bashrc | |
mkvirtualenv <name-of-the-env> | |
lsvirtualenv | |
workon <name-of-the-env> | |
deactivate | |
rmvirtualenv <name-of-the-env> | |
cpvirtualenv <name-of-the-old-env> <name-of-the-new-env> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment