VirtualEnv
Way to build isolated Python Deployment Environment-s. http://www.arthurkoziel.com/2008/10/22/working-virtualenv/
With pip and Django http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-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
/Users/billseitz/Documents/djcode/st/bin/python
$ which python2.7
/Library/Frameworks/Python.framework/Versions/2.7/bin/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 code.py
> No module named web - boo!
$ sudo pip install --upgrade web.py
> (can now launch code.py - and get good page from browser)
$ pip install --upgrade selenium
Sept'2017: point-upgrading python v2.7 - see OpenSSL page
Edited: | Tweet this! | Search Twitter for discussion