How to run Python commands in VS Code Terminal
Question:
I have installed latest Python Latest Python 3 (python-3.11.0-amd64) and latest VS Code (VSCodeUserSetup-x64-1.73.1). I also installed the Python Extension for Visual Studio Code.
I have selected the interpreter as:
But I am not able to run any Python Command in the terminal even as an administrator. No error and no complain but just empty line:
Why is this happening?
Answers:
Have you checked python path?
system properties—>environment variables—>system variables—>path
Has Python been added to your path? There’s a checkbox for this in the dialogue when you install it, but if you didn’t check that box, then its possible that Python hasn’t been added to your path.
I have installed latest Python Latest Python 3 (python-3.11.0-amd64) and latest VS Code (VSCodeUserSetup-x64-1.73.1). I also installed the Python Extension for Visual Studio Code.
I have selected the interpreter as:
But I am not able to run any Python Command in the terminal even as an administrator. No error and no complain but just empty line:
Why is this happening?
Have you checked python path?
system properties—>environment variables—>system variables—>path
Has Python been added to your path? There’s a checkbox for this in the dialogue when you install it, but if you didn’t check that box, then its possible that Python hasn’t been added to your path.