Add Python Path - Python is not recognized as an internal or external command

In this tutorial, you'll learn the python path error when you install python successfully but when you run python shows "Python is not recognized as an internal or external command".

This python not recognized generally comes when the environment variable is not set. I think this term is complex if you are new to the windows system but don't vary we are here to help you in an easy way. so, you use the python interpreter without any path problem.

add python path

Below I shared easy steps with images and it will help to easily set path on your windows system. Let follows us: 

Firstly, Go to your Desktop screen and Find This PC or if your windows are older then My Computer and right-click on the icon and select properties.

add python path

On the left side of the screen, you can find System protection. Click on it.

add python path

System Properties window appears on the screen and selects Advanced from the top menu. Click on Environment variables.

add python path

On Environment variables, In these two vertical boxes appear click on the New button of User variables for YourPcName.

add python path

Then New User Variable appear, In this, you have to create a new path for your python. Keep the Variable Name the same i.e. PATH and for Variable Value just click on Browse Directory. 

Now, Browse your python folder where you installed. Generally, you can find it in the Program Files of C Drive of your computer. 

If you find then select the python folder and Tap on OK.

add python path

Then OK, OK, Apply, and OK.

Now Open the command prompt and to start the Python Interpreter then type python for python version 2 and python3 for python version 3. 

Start Enjoy Learning Python  

In the above, you learn to set the python path error i.e. "Python is not recognized as an internal or external command".

If you have any doubts, Please let me know

Previous Post Next Post

Contact Form