Monday, January 10, 2011

Questions About Brazilian Wax

Ubuntu setup a 'virtualenv environment'

Travel notes to install and configure an environment with Python virtualenv / virtualenvwrapper.


First install pip, and virtualenv virtualenvwrapper

 $ sudo apt-get install python python-pip-virtualenv 
$ mkdir ~ /. Virtualenvs
$ pip install sudo virtualenvwrapper


export variables d ' environment in ~ /. bashrc editing the file with our favorite editor vim;)

 export WORKON_HOME = $ HOME / .virtualenvs 
source / usr / local / bin / export virtualenvwrapper.sh
PIP_VIRTUALENV_BASE = $ WORKON_HOME


Set and export PYTHONPATH in 'environment virtualenv editing / .virtualenvs / PostActivate

 export PYTHONPATH = $ PYTHONPATH: $ VIRTUAL_ENV 


List of basic commands, with a small description.

 workon myenv $ # set the current environment virtualenv (myenv) 

$ # deactivate Deactivate the current environment

$ mkvirtualenv - no-site-packages # Create myenv a clean environment virtualenv

$ rmvirtualenv myenv # Removes the environment

cdvirtualenv $ # Go to the active directory environment

$ lssitepackages # List of packages installed in the




Setup an example environment :

 $ mkvirtualenv - no-site-packages myenv 
$ cdvirtualenv



links and resources :
http://www.doughellmann.com/projects/virtualenvwrapper/
http: / / pip.openplans.org /
http://mathematism.com/2009/jul/30/presentation-pip-and-virtualenv/


HTH,
Sani

0 comments:

Post a Comment