Author Climent
Author Climent

Reputation: 83

VS Code python troubles

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

Answers (2)

Sweet Chilly Philly
Sweet Chilly Philly

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

Sytze
Sytze

Reputation: 355

Either Python is not properly installed or you should add python to Window's path variable (see this S/O question). Does that help you?

Upvotes: 1

Related Questions