Skip to content

Instantly share code, notes, and snippets.

@NimzyMaina
Created September 2, 2019 07:11
Show Gist options
  • Save NimzyMaina/f7e8e46a237bd00e22764b9d251eef09 to your computer and use it in GitHub Desktop.
Save NimzyMaina/f7e8e46a237bd00e22764b9d251eef09 to your computer and use it in GitHub Desktop.
Virtual Env Commands
## Make virtual ENV
mkvirtualenv test
## Make virtual ENV in current DIR
mkvirtualenv -a $(pwd) test
## Make virtual ENV with Python version
mkvirtualenv -a $(pwd) python=python3 test
## Set project dir
## cd to desired project dir & run command
setvirtualenvproject
## Exit from ENV
deactivate
## Remove Virtual ENV
rmvirtualenv test
## Active ENV
workon test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment