Skip to content

Instantly share code, notes, and snippets.

@arlago
Created February 28, 2017 20:21
Show Gist options
  • Save arlago/41a411fdad0a96f4289271559ae03375 to your computer and use it in GitHub Desktop.
Save arlago/41a411fdad0a96f4289271559ae03375 to your computer and use it in GitHub Desktop.
Python virtualenv how to

Install virtualenv

sudo apt-get install python-virtualenv

Create project virtualenv

virtualenv

Update existent virtualenv to Python 3

virtualenv -p python3

Activate virtualenv

source /bin/activate

Install dependencies after virtualenv activation

pip install

Show all installed libs in virtualenv

pip freeze

Deactivate current activated virtualenv

deactivate

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