First time here? Check out the FAQ!

Revision history  [back]

OS Command issue

Wing Pro,, Win 10.
I'm trying to create an OS command that I've used in other projects and it isn't using the right Python version nor finding ssort (it runs fine in a command window in the activated venv). I'm using 3.11 (also have 3.9 & 3.10 installed).

image description image description image description

The project was setup to use an existing venv with 3.11. The larger project is a Django project but I've also created a project in the same venv that is not configured as a Django project since I was having trouble figuring out how to run a script/file without using the Django config; just as a plain Python file. This is the plain project where I'm having a problem:

image description image description

I added a print(sys.path) to the bottom of a Python file and ran it in Wing (F5):

['C:\GitRepo\ee_web_django\ee_web\ee_web\components', 'C:\Users\EricE\AppData\Local\Programs\Python\Python311\', 'C:\Users\EricE\AppData\Local\Programs\Python\Python311\DLLs', 'C:\Users\EricE\AppData\Local\Programs\Python\Python311\Lib', 'C:\Users\EricE\AppData\Local\Programs\Python\Python311', 'C:\GitRepo\ee_web_django\venv', 'C:\GitRepo\ee_web_django\venv\Lib\site-packages']