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
2,470 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
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, 2022 in Python by Rahul
• 9,680 points
2,530 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,840 points
8,411 views
0 votes
1 answer

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

There are multiple ways you can use: 1)Use ...READ MORE

answered Feb 16, 2022 in Python by Nandini
• 5,480 points
16,884 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, 2022 in Python by CoolCoder
• 4,420 points
1,118 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, 2022 in Python by Edureka
• 13,620 points
714 views
0 votes
0 answers

'python' is not recognized as an internal or external command [duplicate]

I recently got Python Version 2.7.5, and ...READ MORE

Sep 21, 2022 in Python by Samuel
• 460 points
663 views
0 votes
1 answer
0 votes
1 answer

'Conda' is not recognized as internal or external command

I was coming across the same issue ...READ MORE

answered Feb 11, 2022 in Python by Soham
• 9,710 points
30,011 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, 2019 in Python by Fata
• 1,050 points
850 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
2,670 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP