Python Virtualenv Snippet

Alex Egg,

This is how you setup a python project w/ virtualenv. I’m just documenting this here b/c I’m always trying to look it up:

$ sudo pip install virtualenv
$ mkdir ~/environments/
$ virtualenv ~/environments/tutorial/
$ cd ~/environments/tutorial/
$ ls
bin  include  lib
$ source bin/activate
(tutorial) $ pip install gunicorn
(tutorial) $ mkdir myapp
(tutorial) $ cd myapp/
(tutorial) $ vi myapp.py

Permalink: python-virtualenv-snippet

Tags:

Last edited by Alex Egg, 2016-04-19 15:46:10
View Revision History