How to Fix Python was not found run without arguments to install from the Microsoft Store


Sometimes you may try to install a package via CLI. While running the command you get this message “Python was not found; run without arguments to install from the Microsoft Store”. This message is displayed because what you intend to install needs Python for a successful installation or configuration. In this guide, I will be showing you how to fix Python that was not found run without arguments to install from the Microsoft Store. You may want to read further on How to Run Python Script via Windows Task Scheduler and Python Automation in Windows with Visual Studio Code and How you can Visualize MBAM Recovery Audit Report with Python

Fix Python was not found

Following the steps below to resolve the issue, python not found to run with an argument on Windows.

A. Using Environment Variable

1. Open AppData and Navigate to the Python folder. You will need to navigate to the python folder and copy the path

AppData > Local > Programs > Python > Python311

2. Open the Scripts folder

You will also need to navigate further into the Scripts folder and copy the path.

AppData > Local > Programs > Python > Python311 > Scripts

3. Open Environment Variables

Open Windows Environment Variable and navigate to system variables. Under Path click New and paste the two paths you copied earlier and click OK to close the Environment Variable.


Learn how to upgrade and downgrade PIP on Windows, how To Add Google Drive To File Explorer on Windows, and How to check the BIOS version on Windows.

A. Install Python for Windows: Add to the Environment Variable

During the installation of Python, you may need to check the box “Add Python to environment variables” and install. If already installed, you can still check this box by relaunching the installation file and modifying the installation.


Here are some interesting guides: Ansible: No python interpreters found for the host, and how to create an Advanced Windows Scheduled Task.


How do I fix Python not found on Windows 10?

Confirm that the Python installation was successful, and you can try to re-install it and check the “Add Python to environment variables”. You can also update the PATH variable to include the Python executable path.

How do I install Python in the Microsoft Store?

On your Windows system search for “Microsoft Store”, and select the link to open the store. Once the store is open, select Search from the upper-right menu and enter “Python”. Select which version of Python you would like to use from the results under Apps and start the installation.

I hope you found this blog post on “how to Fix Python was not found run without arguments to install from the Microsoft Store. Interesting and helpful. In case you have any questions do not hesitate to ask in the comment section.

Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x