Adding python to windows path not working

After following the instructions on the answer to this quetion, my computer still doesn't recognize python as an internal or external command, operable program or batch file.

I've uploaded a picture for context; what am I doing incorrectly here?enter image description here

EDIT: Here is another picture to show that I am inside path, but the issue seems to be that it won't save the changes I'm making. I copy the correct line in and press enter then press okay, but it's gone when I pull it back up.

1

4 Answers

What am I doing incorrectly here?

You are not saving your changes correctly.

Look at the bottom of the dialog where you are editing. There are OK and Cancel buttons. Press OK. Then OK on the next dialog, etc ... it should be a total of 3 times:

enter image description here

After you have done this open a new cmd prompt and your modified path should show when you type path.

Adding for future reference, as I struggled with this same problem for a while and none of the suggested solutions here or elsewhere fixed the issue for me.

If you have WindowsApps in your path variable then you want to make it is below your Python directory in the list. The reason is WindowsApps contains a python.exe, but it isn't actually python, just a hook to launch Windows Store and search for Python. If WindowsApps appears first in your path variable then Windows will try to use this when you run python from cmd, rather than the python.exe in the directory you have pointed to.

1

1) get rid of the trailing backslash (notice none of the other entries has one) 2) make sure you open a new command prompt after making changes.

8

Make sure to keep up your python above your windows apps.

Example

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like