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:
Run the interpreter for your virtual environment outside of Wing.
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.
- 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:
Run the interpreter for your virtual environment outside of Wing.
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.
- 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:
Run the interpreter for your virtual environment outside of Wing.
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.
- Set the Python Executable to be the output from the sys.executable command.
Run the interpreter for your virtual environment outside of Wing.From that interpreter, you can identify the executable for the environment by running thecommands:commands: import sysprint(sys.executable)
print(sys.executable)
3. From Wing, open the Project Properties dialog.
- Set the Python Executable to be the output from
the sys.executablethe sys.executable command.