FG
💻 Software

How can I run python scripts on Windows?

Fresh5 days ago
Mar 15, 202613261 views
Confidence Score0%
0%

Problem

I'm new to Windows 7 and with my Python installation. When I specify in and hit Return/Enter, instead of executing the python file, I am given an error message (sth like "not a command"). How do I tell Windows to run the Python interpreter when specifying or double-clicking a Python script?

Error Output

script.py

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I run python scripts on Windows?

Low Risk

Associate the extension with the interpreter executable. Normally the installer does this for you.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment