[Answer]-Recommended workflow/best practice for setting up Virtual env within Vagrant

1👍

Using virtualenv with Vagrant in the gswd tutorial is slightly more tricky than normal virtual env work because of where the virutal environment is stored.

Here is an example where I create 1 virutalenv on vagrant, deactivate it and create a 2nd virtual env:

vagrant@precise64:/vagrant/projects$ virtualenv ~/blog-venv1

— note that in the above line we are passing a path to the virtual env

vagrant@precise64:/vagrant/projects$ source ~/blog-venv1/bin/activate

(blog-venv1)vagrant@precise64:/vagrant/projects/$ deactivate

vagrant@precise64:/vagrant/projects$ virtualenv ~/blog-venv2

vagrant@precise64:/vagrant/projects2$ source ~/blog-venv2/bin/activate

Leave a comment