Saturday, 19 March 2011

virtualenvwrapper (and install pinax)

First:

 apt-get install python-setuptools
easy_install pip
pip install virtualenv
pip install virtualenvwrapper
Then

nano ~/.bashrc

Now copy the required path


# virtualenvwrapper
export WORKON_HOME=~/.virtualenvs
source /usr/bin/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true



source ~/.bashrc

mkdir ~/.virtualenvs

Usage examples:

mkvirtualenv --no-site-packages myenv

workon myenv

Pinax
Then you can cd to favorite directory and install pinax:

pip install Pinax
And replicate a project:

 pinax-admin setup_project -b social myproj





 Thansk:
http://blog.sidmitra.com/manage-multiple-projects-better-with-virtuale

No comments:

Post a Comment