Skip to content

Instantly share code, notes, and snippets.

@whhone
Last active July 16, 2018 22:26
Show Gist options
  • Save whhone/a2b3baa132269483ae1eebcc4a83955c to your computer and use it in GitHub Desktop.
Save whhone/a2b3baa132269483ae1eebcc4a83955c to your computer and use it in GitHub Desktop.
virtualenvwrapper Cheat Sheet

Installing

sudo apt install virtualenvwrapper # Ubuntu
sudo pip install virtualenvwrapper # Mac or Ubuntu

Create a virtual env

mkvirtualenv --python=`which python3` <vir_env_name>

List Virtual Environments

lsvirtualenv -b

Change Virtual Environments

workon <vir_env_name>

List site packages

lssitepackages

Exit the Virtual Environments

deactivate 

Remove Virtual Environment

rmvirtualenv <vir_env_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment