Saturday, May 15, 2010

How to start python IDLE in virtualenv on Windows

IDLE is an integrated development environment for Python. It is more convenient than plain python command prompt. In order to start IDLE in virtualenv environment you have to:
  • Copy tcl directory from your python installation folder to your environment directory.
  • Create shortcut with name IDLE to pythonw.exe that is located in Scripts directory of your environment.
  • Append "%PYTHON_HOME%\Lib\idlelib\idle.pyw" to the shortcut Target.
Once you are done you should be able start IDLE from within your environment.

2 comments :