Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Run the interpreter for your virtual environment outside of Wing.
  2. From that interpreter, you can identify the executable for the environment by running the commands:  import sys print(sys.executable) 3. From Wing, open the Project Properties dialog.
  3. Set the Python Executable to be the output from the sys.executable command.
click to hide/show revision 2
No.2 Revision
  1. Run the interpreter for your virtual environment outside of Wing.

  2. From that interpreter, you can identify the executable for the environment by running the commands:  commands: 

    import sys print(sys.executable) print(sys.executable)

3. From Wing, open the Project Properties dialog.

  1. Set the Python Executable to be the output from the sys.executable the sys.executable command.

You can either set the Python Executable in Project Properties to "Activated Env" and enter the command that activates the environment, or set it to the virtualenv's Python, which you can find as follows:

  1. Run the interpreter for your virtual environment outside of Wing.

  2. From that interpreter, you can identify the executable for the environment by running the commands: 

    import sys print(sys.executable)

3. From Wing, open the Project Properties dialog.

  1. Set the Python Executable to be the output from the sys.executable command.

You As of Wing 7.2, you can either set the Python Executable in Project Properties to "Activated Env" and enter the command that activates the environment, or environment.

In all versions of Wing you can instead set it Python Executable to the virtualenv's Python, which you can find as follows:

  1. Run the interpreter for your virtual environment outside of Wing.

  2. From that interpreter, you can identify the executable for the environment by running the commands: 

    import sys print(sys.executable)

3. From Wing, open the Project Properties dialog.

  1. Set the Python Executable to be the output from the sys.executable command.