from EPD install:
As the last step, you should edit your .bashrc or prepend the EPD install path: /software/python/EPD/7.0/bin Thank you for installing EPD!
$ export PATH=/software/python/EPD/7.0/bin:$PATH
$ which easy_install:
/software/python/EPD/7.0/bin/easy_install
$ easy_install virtualenvwrapper:
install_dir /software/python/EPD/7.0/lib/python2.7/site-packages/ Searching for virtualenvwrapper Reading http://pypi.python.org/simple/virtualenvwrapper/ Reading http://www.doughellmann.com/projects/virtualenvwrapper/ Best match: virtualenvwrapper 2.6.1 Downloading http://www.doughellmann.com/downloads/virtualenvwrapper-2.6.1.tar.gz Processing virtualenvwrapper-2.6.1.tar.gz Running virtualenvwrapper-2.6.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZuXKW3/virtualenvwrapper-2.6.1/egg-dist-tmp-Q_8fFi Adding virtualenvwrapper 2.6.1 to easy-install.pth file Installing virtualenvwrapper.sh script to /software/python/EPD/7.0/bin Installed /software/python/EPD/7.0/lib/python2.7/site-packages/virtualenvwrapper-2.6.1-py2.7.egg Processing dependencies for virtualenvwrapper Searching for virtualenv Reading http://pypi.python.org/simple/virtualenv/ Reading http://virtualenv.openplans.org Best match: virtualenv 1.5.1 Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.1.tar.gz#md5=3daa1f449d5d2ee03099484cecb1c2b7 Processing virtualenv-1.5.1.tar.gz Running virtualenv-1.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-WYuUNS/virtualenv-1.5.1/egg-dist-tmp-1_pnzJ warning: no previously-included files matching '*.*' found under directory 'docs/_templates' Adding virtualenv 1.5.1 to easy-install.pth file Installing virtualenv script to /software/python/EPD/7.0/bin Installed /software/python/EPD/7.0/lib/python2.7/site-packages/virtualenv-1.5.1-py2.7.egg Finished processing dependencies for virtualenvwrapper
$ export WORKON_HOME=/software/python/EPD/virtualenvs/7.0
$ mkdir /software/python/EPD/virtualenvs
$ mkdir /software/python/EPD/virtualenvs/7.0
$ source /software/python/EPD/7.0/bin/virtualenvwrapper.sh:
virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/initialize virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/premkvirtualenv virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/postmkvirtualenv virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/prermvirtualenv virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/postrmvirtualenv virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/predeactivate virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/postdeactivate virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/preactivate virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/postactivate virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/get_env_details
$ mkvirtualenv devpype:
New python executable in devpype/bin/python Installing setuptools........................done. virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/devpype/bin/predeactivate virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/devpype/bin/postdeactivate virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/devpype/bin/preactivate virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/devpype/bin/postactivate virtualenvwrapper.user_scripts creating /software/python/EPD/virtualenvs/7.0/devpype/bin/get_env_details
to use the environment devpype (automatically activated by mkvirtualenv) but for other users they would just need to do:
source /software/python/EPD/virtualenvs/7.0/devpype/bin/activate and then to turn off deactivate
alternatively using virtualenvwrapper (put into bashrc)
export PATH=/software/python/EPD/7.0/bin:$PATH export WORKON_HOME=/software/python/EPD/virtualenvs/7.0/ source /software/python/EPD/7.0/bin/virtualenvwrapper.sh
then in the terminal you can use virtualenvwrapper commands:
workon devpype