Home » Support » Index of All Documentation » How-Tos » How-Tos for Other Libraries »

Using Wing IDE with virtualenv

Wing IDE is an integrated development environment that that speeds up the process of writing, testing, and debugging Python code. Wing IDE supports virtualenv, providing auto-completion, call tips, goto-definition, find uses, refactoring, a powerful debugger, unit testing, and many other features that help you navigate, understand, and write Python code.

For more information on Wing IDE see the product overview. If you do not already have Wing IDE installed, download a free trial now.

Project Configuration

To use virtualenv with Wing, simply set the Python Executable in Wing's Project Properties to the python executable provided by virtualenv. Wing uses this to determine the environment to use for source analysis and how to execute, test, and debug your code.

The easiest way to determine the correct value to set is to launch your virtualenv Python outside of Wing IDE and run import sys; print(sys.executable). Then use the full path that prints as the Python Execuable in Wing.

An alternative approach is to activate the virtualenv and then start Wing from the command line so that it inherits the virtual environment. However, setting Python Executable is preferable so that Wing switches virtual environments when you switch projects without restarting the IDE.

Related Documents

Wing IDE provides many other options and tools. For more information:

Using Wing IDE with virtualenv