Problem using VS with Python on Windows 10

I have VS 2019 Community. Starting the Python lesson. BUT I cannot run my code in the Powershell terminal window. Either by typing or .\

I can run it from Windows (I’m on Win10).


You need to type




THANKS!!! It was py That worked!!!

Python scripts are not compiled into machine-readable form. That’s why you need an interpreter - a separate program that interprets your code and translates it in a way that a computer can understand. Saying “py” is like saying “python interpreter run this code for me”.
Glad to help ^^

1 Like