-1

I tried to run my code by typing 'python name.py' in the CMD but it says: 'python' is not recognized as an internal or external command, operable program or batch file.

yoav
  • 324
  • 4
  • 22

3 Answers3

0

You have to add the path to your python executable folder in the enviroment variables just search for enviroment variables and add the path ..

VIKI
  • 181
  • 3
0

You can reinstall python on your machine and check add to path.

Or see how to add to your path according to another answer that already exists here in the forum:

How to add to the PYTHONPATH in Windows, so it finds my modules/packages?

lucas
  • 79
  • 6
0

I should have typed py name.py instead python name.py.

Buddy
  • 10,874
  • 5
  • 41
  • 58
yoav
  • 324
  • 4
  • 22