0

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.stack.imgur.com/dPA2o.png

Author Climent
  • 83
  • 1
  • 1
  • 8
  • Sharing information in screenshots is discouraged, please only do so if absolutely necessary. – AMC Jan 09 '20 at 00:19
  • Does this answer your question? ['python' is not recognized as an internal or external command](https://stackoverflow.com/questions/17953124/python-is-not-recognized-as-an-internal-or-external-command) – AMC Jan 09 '20 at 00:20
  • No it didn't help me. – Author Climent Jan 09 '20 at 18:27
  • How is that possible? Isn't that what the accepted answer is? – AMC Jan 09 '20 at 18:50
  • The first answer at this question helped me fix it. So i commented it wrong. It could help me, but first i looked at that answer. Sorry. But your comment was helpfull, thanks. – Author Climent Jan 09 '20 at 19:39

2 Answers2

1

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?

Sytze
  • 345
  • 2
  • 12
0

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/

Sweet Chilly Philly
  • 3,014
  • 2
  • 27
  • 37