First time here? Check out the FAQ!

Revision history  [back]

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

In all versions of Wing you can instead set 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.

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

In all versions of Wing you can instead environment, or set Python Executable 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 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.
  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.