Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings

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

Solution 1:

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

  2. Check the path environment variable

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

Solution 2:

I have the same issue. I fixed this issue by using the 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 paths where your Python interpreter 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