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

0 votes
May 28 in Python by Nisa
• 1,090 points
53 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 by Fata
• 1,040 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
• 56,960 points
132 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,720 points
210 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 in Python by Noel Deepak Palle
609 views
0 votes
1 answer
0 votes
1 answer

How do I use urllib to see if a website is 404 or 200 in Python?

For Python 3, try doing this: import urllib.request, ...READ MORE

answered Nov 29, 2018 in Python by Nymeria
• 3,520 points

edited Dec 11, 2018 by Nymeria 1,363 views
0 votes
1 answer

How do I check if input string is a valid regular expression or not in Python?

Hi. Good question! Well, just like what ...READ MORE

answered Feb 12 in Python by Nymeria
• 3,520 points
154 views
0 votes
1 answer
0 votes
1 answer

How to get travis to fail if tests do not have enough coverage for python?

if you add the --fail-under switch to ...READ MORE

answered May 10 in Python by SDeb
• 13,210 points
96 views
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 in Python by Fata
• 1,040 points
33 views
+1 vote
1 answer

Django not found error

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

answered Jun 24 in Python by Fata
• 1,040 points
43 views