Reputation: 83
I installed the VS Code, then i installed Python and Code Runner (according to tutorial on web) in.
I launched the VS Code and I typed print("say Hello")
and i got a problem (see a pic). Nevertheless i run the code and i got this:
[Running] python -u "c:\Windows\System32\hello\hello.py"
'python' is not recognized as an internal or external command,
operable program or batch file.
What's wrong?
Problem in code: https://i.sstatic.net/dPA2o.png
Upvotes: 0
Views: 85
Reputation: 3219
Sounds like you need to add Python to your environment variables so your computer can recognize the code being run.
Here is a short tutorial showing how you can add python to your environment variables: https://appuals.com/fix-python-is-not-recognized-as-an-internal-or-external-command/
Upvotes: 0