"python" in command prompt doesn't work (windows 10)

"python" in command prompt doesn't work (windows 10)

Problem Description:

I downloaded python 1.11 from the python website but whenever I try to launch "python" in command prompt it launches the windows store and tells me to install python.

I ran py -3 and it launches python 3.11 in the command prompt. Is this the only way to access python though why doesn’t "python" work?

Solution – 1

You need to add python to Windows PATH.
Try using windows search and search for Edit the system environment variables, and then click on Environment variables. You will see "User variables" and "System variables". Find PATH variable in both sections. If you cannot find it, Click "New…".

  • If you are editing existing PATH, add these 2 lines:
<Your python installation path>Python311
<Your python installation path>Python311Scripts

  • If you are creating new PATH variable, add the following line:
<Your python installation path>Python311;<Your python installation path>Python311Scripts


Save the variables and you can access python using python on terminals.

Note: On some windows, PATH is defined as Path.

Rate this post
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.