What to do when I get and error saying python not recognized as internal or external command?

0 votes
May 28, 2019 in Python by Nisa
• 1,090 points
258 views

1 answer to this question.

0 votes

You need to set up the path variable.

  1. To do this, you should first Install python. Here is the link that will take you to the official website from where you can download python https://www.python.org/downloads/ 
  2. After this, install it on your PC. Look for the location where PYTHON has been installed on your PC using the following command on your command prompt: cmd python. 
  3. Then go to advanced system settings and add new variable and name it as PYTHON_NAME and paste the copied path. 
  4. Look for the path variable, select it's value and select edit 
  5. Add a semicolon towards the end of the value if it's not present and then type %PYTHON_HOME%

This should solve the error.

answered May 28, 2019 by Fata
• 1,050 points

Related Questions In Python

0 votes
1 answer

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

I have met same issue when I ...READ MORE

answered Aug 24, 2018 in Python by Priyaj
• 57,640 points
261 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 in Python by Niroj
• 56,800 points
420 views
0 votes
1 answer

When I create and remove files rapidly on windows using python I get WindowsError (Error 5)

Here's the short answer: disable any antivirus or ...READ MORE

answered Aug 31, 2018 in Python by charlie_brown
• 7,780 points
616 views
0 votes
1 answer

i am normalizing the data set iris in python and get the error ::TypeError: 'numpy.float64' object is not callable

TRY THIS   #Nomalisation for i in names:     print(i)   ...READ MORE

answered Aug 19, 2019 in Python by Noel Deepak Palle
2,813 views
0 votes
0 answers
0 votes
1 answer

when I run this, I get NameError: name 'state' is not defined error. How to solve this?

Hi@MUHAMMAD, I tried to run the exact code ...READ MORE

answered Sep 8 in Python by MD
• 54,020 points
71 views
0 votes
1 answer
0 votes
1 answer

What to do when len() does not return the number of integers in range(1,100)?

You can use the following code block: x=range(1,100) len(x) Output: ...READ MORE

answered May 28, 2019 in Python by Fata
• 1,050 points
63 views
+1 vote
1 answer

Django not found error

Before installing Django make sure you have ...READ MORE

answered Jun 24, 2019 in Python by Fata
• 1,050 points
333 views