26
votes

I'm just starting coding and I was trying to download a GUI but the terminal keeps giving me this error Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

I'm trying to install it using this command python -m pip install --upgrade pip setuptools virtualenv

12
pip is for installing python packages. You need to install Python itself. Go to www.python.org and find a download link. - zvone
You're trying to use python, which you don't have, to download python? - Random Davis

12 Answers

15
votes

You need to download python from https://python.org. When in the installation, be sure to check the option that adds Python to PATH.

62
votes

"Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."

1.Check your python version and be sure it is installed on your machine

2.Check the path variables

3.Go to -> "start" and type "Manage App Execution Aliases" .Go to it and turn off "python"

Cheers !!! This will work for you :)

27
votes

I have the some issue. I fixed this issue by using below method.

  1. copy two paths of Python

C:\Users\Maninder\AppData\Local\Programs\Python\Python39 C:\Users\Maninder\AppData\Local\Programs\Python\Python39\Scripts

These are the path where your python is installed. Now add this path into your environmental variable. Put this path into System variable not in user variable. I was using user variable so I was facing the issue.

enter image description here

10
votes

I had the same issue. In windows CMD, only: py --version , works. I tried adding the path on System variables and didn't work. If you are using PyCharm as I do, try to run all commands from the IDE's terminal. It usually is on the side bar where the Run and the Console is. If it is not, go to: View->Tool Windows->Terminal. It worked just fine for me.

8
votes

I haven't gotten this error before and have been using python a long time, and then suddenly it showed up. I think that it is a result of a windows update designed to steer you to their store. In any case: to remedy the problem, go to settings>app execution aliases>and turn "off" python. (What they tell you to do, in other words). This should resolve the problem.

4
votes

I have a solution for you. Make sure you check the path mark during installation. Then you need to go to Manage App Execution Aliases Simply go to your search bar and search the Manage App Execution Aliases You will find attached screen and you need to turn off App Installers as you see on the screen. Also, see the path,,, follow this - https://stackoverflow.com/a/65496777/9346400 enter image description here Then you good to go !!!!!! :)

2
votes

Check the Aliases for App Execution in Windows. Search for Alias App in you your windows toolbar to find the UI for this. Try turning off anything Python related.

1
votes

If you're on Windows, you may want to use the Python installer, in Windows Marketplace.

0
votes

I faced the same error while using Anaconda & trying to link python path in command prompt. It got rectified by going to settings>app execution aliases> and turning "off" python. Then again had to set the path for python in anaconda & was successful in executing "python --version" command.

0
votes

that happened to me. So, to fix it, you have to follow the following steps: 1- Uninstall the python version you already installed.
2- Go ahead and open the installation file to re-install it again. 3- BEFORE hitting Install Now, Make sure to tick the box in front of add python to path. 4- Go ahead and complete the installation procedure as usual. steps of installing python

0
votes

If nothing above is working , you can check if you have python in your program files

Go to C:\Program Files and check if you have the python application

if not go to the python download website here and download the .exe file

While installing you must select custom install and select the location as C:/Program Files

Install it and it should work now from anywhere , this worked for me!

0
votes

if you have installed python successfully with add python path ticked on and have added

C:\Users\<user>\AppData\Local\Programs\Python\Python39
C:\Users\<user>\AppData\Local\Programs\Python\Python39\Scripts

to path into System variables and have turned off the "aliases" and they all didn't work you can simply use python instead of python3 in your cmd command.