Using Wing with virtualenv Python

Index of All Documentation » How-Tos » How-Tos for Other Frameworks and Tools »

Wing is a Python IDE that can be used to develop, test, and debug Python code. Wing 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.

Two versions of Wing are appropriate for use with this document: Wing Pro is the full-featured Python IDE for professional programmers, and Wing Personal is a free alternative with reduced feature set.

If you do not already have Wing installed, download it now.

This document describes how to configure Wing for virtualenv. To get started using Wing as your Python IDE, please refer to the tutorial in Wing's Help menu or read the Quickstart Guide.

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 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 provides many other options and tools. For more information: