pyw.exe

Python Windows Launcher (pyw.exe)

CPU Usage
N/A
Memory
N/A
Location
N/A
Publisher
N/A

Tips
When assessing pyw.exe, check its location, signature, and hash. Use Task Manager to observe its behavior, and correlate with your installed GUI Python apps to determine necessity.
How To Remove
Uninstall Python from Settings > Apps (Windows) or use the Python uninstaller in the Python installation folder. After removal, run a malware scan to ensure no remnants or masquerading files remain.
Best Practices
Keep Python and pyw.exe from official sources. Regularly update Python, run signed installers, and perform periodic malware scans. If you do not use GUI Python apps, consider uninstalling Python to remove pyw.exe entirely.
Most Common Question
Is pyw.exe part of Python, and should I keep it installed?

What is pyw.exe?

pyw.exe is the Windows launcher that executes Python scripts without a visible console, specifically for GUI-based applications built with frameworks like Tkinter, PyQt, and Kivy. It is shipped with official Python distributions and is designed to start GUI apps silently, hiding the typical command prompt. When a Python GUI app starts, Windows may spawn pyw.exe to run the script, keeping the user interface uncluttered and responsive. In general, you’ll see pyw.exe appear when a Python GUI program launches or when a launcher for a GUI script is invoked by another app or by a startup item.

pyw.exe delegates script execution to the Python interpreter for GUI scripts, avoiding the console. It maps .pyw files to Python and relies on the installed Python version to locate dependencies. Its presence usually indicates a GUI Python program is launching, rather than a console-based Python script.

Is pyw-exe Safe?

Is pyw-exe safe? Yes, when it originates from a legitimate Python distribution (official Python.org builds, Anaconda, or trusted enterprise images). It acts as a launcher for GUI Python software and does not automatically install malware or modify system settings. The risk increases if the binary is found in an unexpected folder, if its digital signature is missing or invalid, or if it has been tampered with by malware. Always verify source, compare hashes, and ensure the executable matches the Python version you installed. If in doubt, replace the file by reinstalling Python from a trusted source and rerun a malware scan.

Is pyw-exe a Virus?

Is pyw-exe a virus? Not by design. pyw.exe is a legitimate launcher used by Python GUI applications. However, malware can masquerade as pyw.exe or place a similarly named binary in a deceptive location to hide its presence. The risk is highest when pyw.exe appears in non-standard folders, lacks a valid digital signature, or is accompanied by suspicious behavior (excessive network activity, unusual file writes, or unexpected elevated permissions). Always treat unexpected instances with caution and verify integrity.

How to Verify Legitimacy

  1. Check File Location: Confirm pyw.exe resides inside a genuine Python installation folder, such as C:\Python39\pyw.exe or C:\Users\\AppData\Local\Programs\Python\Python39\pyw.exe, not in temp or user-writable folders.
  2. Verify Digital Signature: Open the file properties and view signatures. The signer should be Python Software Foundation or the vendor that supplied your Python distribution, with a valid certificate chain.
  3. Check File Hash: Compute the SHA-256 hash of the pyw.exe you found (e.g., C:\Python39\pyw.exe) and compare it against the official hash published by the Python distribution you installed.
  4. Scan for Malware: Run a full system or targeted scan on the path C:\Python39\pyw.exe using Windows Defender or another reputable antivirus to detect tampering or related payloads.

Red Flags: Red flags include pyw.exe in a non-Python folder (like Temp or AppData\Local\Temp), missing or invalid signatures, unexpected network activity, or a modification date that predates your Python installation. If you see any of these, isolate the file and perform a thorough check.

Why is it Running?

Reasons it's running:

Can I Disable or Remove It?

Common Problems

Common Causes & Solutions

Frequently Asked Questions

Related Processes