Software⏱️ 3 min read📅 2026-06-03

How to Fix: "Permission Denied" trying to run Python on Windows 10

Quick Answer: Check if the Python executable is still in the PATH after the Windows update. If not, try adding it manually to the PATH environment variable.

The 'Permission Denied' error when trying to run Python on Windows 10 is frustrating for users who rely on this programming language. This issue can occur due to changes made by recent Windows updates, which may have affected the permissions or access rights of the Python executable.

The timing of the issue makes it challenging, as it coincides with a recent update cycle. However, instead of rolling back updates, we will explore simpler fixes that might resolve the problem without affecting other system settings.

💡 Why You Are Getting This Error

  • One primary reason for this error is that the recent Windows updates may have altered the permissions or access rights of the Python executable. This can happen when new security features are introduced, which sometimes affect existing applications and their associated files.
  • Another possible cause could be a conflict between the Python executable and the Windows update process. Although this seems unlikely, it's essential to consider alternative explanations for the issue.

🛠️ Step-by-Step Verified Fixes

Changing the Execution Permissions of the Python Executable

  1. Step 1: Open the Command Prompt as an administrator by right-clicking on the Start button and selecting 'Command Prompt (Admin)'. This will ensure that you have sufficient privileges to modify file permissions.
  2. Step 2: Navigate to the directory where the Python executable is located. You can do this by typing `cd C:\Python\python.exe` in the Command Prompt. Replace `C:\Python\python.exe` with the actual path to your Python executable.
  3. Step 3: Use the `icacls` command to change the execution permissions of the Python executable. Type `icacls C:\Python\python.exe /grant:rwx System`. This will grant read, write, and execute permissions to the System user group.

Re-registering the Python Executable

  1. Step 1: Open the Command Prompt as an administrator (as described in Method 1). Navigate to the directory where the Python executable is located.
  2. Step 2: Use the `regsvr32` command to re-register the Python executable. Type `regsvr32 C:\Python\python.exe`. This will attempt to reinstall the Python executable and resolve any issues with its registration.

✨ Wrapping Up

By following these steps, you should be able to resolve the 'Permission Denied' error when trying to run Python on Windows 10. If you're still experiencing issues after attempting both methods, it may be worth considering rolling back recent updates or seeking further assistance from Microsoft support.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions