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:

enter image description here

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:

enter image description here

Why is this happening?

Asked By: Behseini

||

Answers:

Have you checked python path?

system properties—>environment variables—>system variables—>path

Answered By: Harez

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.

system properties

edit pathenter image description here

Answered By: adminaf
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.