Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

So I have recently installed Python Version 2.7.5 and I have made a little loop thing with it but the problem is when I go to cmd and type python testloop.py I get the error:

'python' is not recognized as an internal or external command

I have tried setting the path but no avail.

Here is my path:

C:\Program Files\Python27

As you can see, this is where my Python is installed. I don't know what else to do. Can someone help?

2 Answers

0 votes
by (106k points)
edited by

You are getting the error python' is not recognized as an internal or external command then you need to add that folder to your Windows Path.

To know more about this you can have a look at the following video tutorial:-

0 votes
by (20.3k points)

You can try using "py" instead of "python" from the command line like this:

C:\Users\Cpsa>py

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>>

Browse Categories

...