Way to build isolated Python Deployment Environment-s.

With pip and Django

Aug'2010: I have it in /documents/djcode/pinax-env/ - for Pyramid and WebPy have one in /documents/djcode/st/

  • cd into there
  • type source bin/activate

Feb'2014: changing a virtualenv to use python 2.7 instead of 2.6.

$ which python
$ which python2.7
$ virtualenv -p /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 st (<path/to/new/virtualenv/>)
$ cd st
$ source/bin activate
$ python
> python2.7 - yay!
$ python
> No module named web - boo!
$ sudo pip install --upgrade
> (can now launch - and get good page from browser)
$ pip install --upgrade selenium

Sept'2017: point-upgrading python v2.7 - see OpenSSL page

Edited:    |       |    Search Twitter for discussion