Clone wiki

envdotpy / Home

Overview is a Python script that makes it easy to create, remove and switch between Python virtual environments. It works with the Windows command shell and the only dependencies are Python and virtualenv. I've been using this script under Windows XP for some time now with no issues (YMMV). If you have access to a proper shell you should use virtualenvwrapper:


Copy the included file "" to a directory on your path, "C:\Python2x\Scripts" is a good option.

Usage [options] arg


-h--helpshow this help message and exit
-r--removedelete the virualenv
-c--createcreate the virtualenv if it does not already exist
-l--listlist all current virtualenvs in directory
-d DIRECTORY--directory=DIRECTORYpath to the directory containing the virtualenv

By default this script uses "C:\virtualenvs" as the storage path. You can change this with the "-d" argument or edit the variable DEFAULT_DIR_PATH in


# List all environments -l

# Create a new virtual environment -c mynewvirtualenv

# Delete a virtual environment -r myoldvirtualenv

# Switch to a new virtual environment myothervirtualenv

Working within environments

When working within an environment you will not be able to rely on windows to automatically execute python scripts as it will bypass your virtual environment when doing so.

So this: runserver

Becomes this:

python runserver


If you're developing with the Django development server DO NOT exit it using CTRL-BREAK as instructed. This will bork your command process and you'll have to close it out and open a new window. Use CTRL-C instead.