<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abid Ali</title>
    <description>The latest articles on DEV Community by Abid Ali (@abidcomsian).</description>
    <link>https://dev.to/abidcomsian</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F500825%2F9327055d-b2d6-43d8-a12f-8b6184adfc96.jpg</url>
      <title>DEV Community: Abid Ali</title>
      <link>https://dev.to/abidcomsian</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abidcomsian"/>
    <language>en</language>
    <item>
      <title>How to Fix “Python Was Not Found” Error on Windows: Disable App Execution Aliases</title>
      <dc:creator>Abid Ali</dc:creator>
      <pubDate>Thu, 24 Jul 2025 20:18:40 +0000</pubDate>
      <link>https://dev.to/abidcomsian/how-to-fix-python-was-not-found-error-on-windows-disable-app-execution-aliases-2mj6</link>
      <guid>https://dev.to/abidcomsian/how-to-fix-python-was-not-found-error-on-windows-disable-app-execution-aliases-2mj6</guid>
      <description>&lt;p&gt;If you’ve just installed Python on Windows and when trying to run python from the Command Prompt you see this message:&lt;/p&gt;

&lt;p&gt;"&lt;em&gt;Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings &amp;gt; Apps &amp;gt; Advanced app settings &amp;gt; App execution aliases&lt;/em&gt;."&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Don’t worry&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;This is a common problem caused by Windows redirecting your Python commands to the Microsoft Store. In this post, I’ll walk you through the exact steps to fix it, so you can start coding right away.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What Causes This Issue?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Windows 10 and 11 have a feature called App Execution Aliases that adds shortcuts for certain apps, including Python. If Python isn’t properly installed or the PATH isn’t set, Windows tries to redirect your command to the Store to download Python.&lt;/p&gt;

&lt;p&gt;This causes confusion because even if you installed Python manually, typing python will still bring up this message.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Step-by-Step Fix: Disable Python App Execution Aliases&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Open Windows Settings&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Press Win + I on your keyboard&lt;/li&gt;
&lt;li&gt;This opens the Settings window&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6kfkz22hwzsalfd4roei.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6kfkz22hwzsalfd4roei.png" alt=" " width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Navigate to App Execution Aliases&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In Settings, click on Apps&lt;/li&gt;
&lt;li&gt;Then click on Advanced app settings (or search for “App execution aliases” in the Settings search bar)&lt;/li&gt;
&lt;li&gt;Scroll through the list until you find:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;python.exe&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;python3.exe&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbo9z0xvny36jw3orbgv4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbo9z0xvny36jw3orbgv4.png" alt=" " width="800" height="501"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Disable the Aliases&lt;/strong&gt;&lt;br&gt;
Toggle the switches OFF for both python.exe and python3.exe&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Verify the Fix&lt;/strong&gt;&lt;br&gt;
Open a new Command Prompt window&lt;br&gt;
Run the command:&lt;br&gt;
python --version&lt;br&gt;
You should now see the Python version you installed, e.g.:&lt;br&gt;
Python 3.13.x&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bonus Tips&lt;/strong&gt;&lt;br&gt;
Always make sure you install Python from python.org and check the box Add Python to PATH during installation.&lt;/p&gt;

&lt;p&gt;If you don’t see Python in your PATH, you can manually add it by editing your environment variables.&lt;/p&gt;

&lt;p&gt;Use python -m pip instead of just pip to ensure you’re using the correct pip for your Python version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Summary&lt;/strong&gt;&lt;br&gt;
Disabling the Windows App Execution Aliases for Python is a quick and effective fix for the “Python was not found” error. Once disabled, Windows stops redirecting your commands to the Microsoft Store, and you can run Python smoothly from the terminal.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>installation</category>
    </item>
  </channel>
</rss>
