How can I set environment variable WORKON_HOME for virtualenvwrapper-win

python, virtualenv

Solution

AS lguananut said, you are asking how to set an environment variable. Take Win7 as example,

- execute command "sysdm.cpl"

- Go to Advanced tab, open "Enviroment Variables..."

- New a system variable

- In pop window, set variable name = WORKON_HOME, value = [your virtual environments root]

relaunch one command prompt, all commands like mkvirtualenv, workon will works.

Problem

I am trying to setup virtualenvwrapper-win on a usb drive as part of a python development environment. In https://github.com/davidmarble/virtualenvwrapper-win it states: ``` Optional: Add an environment variable WORKON_HOME to specify the path to store environments. By default, this is %USERPROFILE%\Envs. ``` but doesn't explain how to do this. Could someone help with this? My system python is at: ``` /f/python27/python ```

Original source