Python was not found; run without arguments

This error message typically occurs when you try to run a Python script on a Windows machine, but Python is not installed or configured correctly. The message is indicating that the Python interpreter is not found on your system, and suggesting that you install it from the Microsoft Store.

To resolve this issue, you can follow these steps:

Install Python

You need to download and install Python on your Windows machine. You can download the latest version of Python from the official website at . Follow the installation wizard to install Python on your system.

Add Python to the PATH environment variable

After installing Python, you need to add it to the PATH environment variable. This will enable you to run Python from the command prompt or PowerShell. To do this, search for "Environment Variables" in the Windows search bar, and click on "Edit the system environment variables". In the "System Properties" dialog, click on the "Environment Variables" button. Under "System Variables", find the "Path" variable and click "Edit". Add the path to the Python installation directory to the list of paths, separated by semicolons. For example, if you installed Python in the default location, the path would be "C:\Python39".

Restart your terminal or editor

If you are using a terminal or editor to run Python, you may need to restart it after installing and configuring Python.

Once you have completed these steps, you should be able to run Python scripts without encountering the error message.

How to Install Python

To install Python on your computer, follow these steps:

  1. Go to the official Python website at
  2. Click on the "Download" button for the latest version of Python.
  3. Choose the appropriate installer for your operating system .
  4. Run the installer and follow the on-screen instructions to install Python on your computer.
  5. Verify that Python is installed correctly by opening a command prompt or terminal and typing "python" or "python3".

How to solve Python was not found run without arguments to install from the microsoft store, or disable this shortcut from settings
Full Error Message: Python was not found; run without arguments to install from the microsoft store, or disable this shortcut from settings › manage app execution aliases.

NEXT.....Attempted relative import with no known parent package