python is not recognized as an internal or external command

0 votes

 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?

Feb 16 in Python by Dev
• 6,000 points
41 views

1 answer to this question.

0 votes
There are multiple ways you can use:

1)Use py instead of python in the command prompt.
2)Type "help", "copyright", "credits" or "license" for more information in the command prompt
3)In Python installer check the box add python to environment variables. Make sure to restart powershell and command prompt.
4) Or the Python Folder to windows path
answered Feb 16 by Nandini
• 5,480 points

Related Questions In Python

0 votes
3 answers

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

Try "py" instead of "python" from command line: C:\Users\Cpsa>py Python 3.4.1 (v3.4.1:c0e311e010fc, May ...READ MORE

answered Feb 8 in Python by Rahul
• 8,980 points
568 views
0 votes
1 answer

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

Use "py" instead of "python" from command ...READ MORE

answered Feb 16 in Python by CoolCoder
• 4,360 points
29 views
0 votes
0 answers

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

So I have recently installed Python Version ...READ MORE

Apr 18 in Python by Edureka
• 8,240 points
35 views
0 votes
1 answer

Error:'pip' is not recognized as an internal or external command

Hello @kartik, Try this: Type 'start %appdata%' in cmd. After ...READ MORE

answered Aug 3, 2020 in Python by Niroj
• 82,720 points
7,177 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,827 views
0 votes
1 answer
0 votes
1 answer

Is there a label/goto in Python?

Since Python is a structured programming language, ...READ MORE

answered Feb 4 in Python by Nandini
• 5,480 points
18 views
0 votes
1 answer

What is the use of "assert" in Python?

The statement assert exists in almost every programming ...READ MORE

answered Feb 7 in Python by Nandini
• 5,480 points
32 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP