sodcalculator

10 Tech How-To

Fix Python 0x080070643 Installer Error Safely

Guide 10-28039 · Updated · Step by step

This guide walks you through fixing the Python installer error 0x080070643, which typically appears as a dialog box saying “There is a problem with this Windows Installer package.” The error is often caused by a corrupted installer cache, permission issues, or leftover registry entries from a previous Python installation. Below you’ll find a safe, step-by-step method to identify the real installer and repair it without breaking your system.

What You’ll Need

  • Windows 10 or 11 (the steps work on both)
  • Administrator account access
  • Internet connection to download the official Python installer
  • Backup of any important Python scripts or virtual environments (optional but recommended)

Step-by-Step

  1. Identify the exact installer package. The error 0x080070643 usually references a specific MSI file. Look at the error dialog: it may show the product name and version, like “Python 3.12.3 (64-bit).” Note this down. If the dialog is not clear, check the Windows Event Viewer: press Win + R, type eventvwr.msc, go to Windows Logs > Application, and look for recent MsiInstaller events with Event ID 11707 or 11724. These will list the product code and the MSI path.
  2. Download the official installer matching that version. Go to python.org/downloads and download the same version and architecture (32-bit vs 64-bit) that is failing. Do not use a cached installer from a download folder—a fresh download ensures the file is not corrupted.
  3. Run the installer as Administrator. Right-click the downloaded installer and select “Run as administrator.” This avoids permission-related causes of error 0x080070643. If the error appears again, proceed to the next step.
  4. Repair the existing installation using the Windows Installer. Open Control Panel > Programs and Features. Find the Python entry that matches the version you are trying to install. Right-click it and choose “Change” (or “Repair” if available). Follow the prompts to repair the installation. This often fixes corrupted registry entries or missing files.
  5. If repair fails, uninstall cleanly. In the same Programs and Features window, select the Python entry and click “Uninstall.” After uninstalling, reboot your PC. Then run the freshly downloaded installer again. This is the most reliable fix for a corrupted installation.
  6. Clear the Windows Installer cache (if uninstall also fails). The installer cache is stored in C:\Windows\Installer. Do not delete files manually—that can break other software. Instead, use the Microsoft Program Install and Uninstall Troubleshooter (available from Microsoft’s support site) to clean up leftover entries. Run it, select “Uninstalling,” and follow the prompts. Then try installing Python again.
  7. Check for conflicting software. Some antivirus or security software can interfere with MSI installations. Temporarily disable real-time protection (not the firewall) and try the install again. Re-enable it immediately after. Also, ensure no other Python installer is running in Task Manager (look for msiexec.exe processes).
  8. Use the MSI command-line repair (advanced). If the error persists, open Command Prompt as Administrator and run: msiexec /fvomus [path to the .msi file]. Replace the path with the actual MSI file from the installer cache or the extracted installer. This forces a full repair of the MSI database. You can extract the MSI from the downloaded .exe by running it with /a flag: python-installer.exe /a and choosing a folder.

Common Mistakes

  • Deleting files from C:\Windows\Installer manually. This can break many other applications. Never do this.
  • Using a corrupted installer file. Always download fresh; do not reuse a cached file.
  • Skipping the reboot after uninstall. Windows Installer often needs a clean slate to remove locks.
  • Mixing 32-bit and 64-bit versions. If you had a 32-bit Python installed, installing a 64-bit version over it can cause errors. Uninstall the old one first.

Tips

  • Before uninstalling, note your installed packages: run pip freeze > requirements.txt in a terminal to save your package list.
  • Use the official Python installer from python.org, not a third-party mirror.
  • If you need multiple Python versions, use virtual environments to avoid conflicts.
  • Keep your Windows Installer service (msiserver) set to Automatic in services.msc.

Troubleshooting

If the error still appears after all steps, try the following:

  • Check if the Windows Installer service is running. Press Win + R, type services.msc, find “Windows Installer,” and ensure it is not disabled. Set it to Manual and start it.
  • Look for orphaned registry entries. Use a reliable registry cleaner (or manually back up and search for “Python” under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall). Only delete entries that clearly correspond to the broken Python installation.
  • Try installing with the MSI directly. Extract the MSI using python-installer.exe /a, then right-click the .msi and choose “Repair” from the context menu.
  • Create a new Windows user account. Sometimes user profile permissions cause the error. Test the installation under a new admin account.

Frequently Asked Questions

What does error 0x080070643 mean?

It’s a generic Windows Installer error indicating that the installer package could not be accessed or applied. It often points to a corrupted MSI database or missing installer cache files.

Will I lose my Python packages if I uninstall?

Yes, uninstalling Python removes the packages installed in its site-packages. Use pip freeze > requirements.txt to back up the list, then reinstall them later with pip install -r requirements.txt.

Can I fix this without uninstalling Python?

Yes, try the Repair option in Programs and Features first. If that fails, the clean uninstall/reinstall is the next best step.

Why does the error mention a product code I don’t recognize?

The product code is a GUID that Windows Installer uses internally. It may not match the displayed version if the registry is corrupted. The Event Viewer will show the actual product name.

Is it safe to use the Microsoft Program Install and Uninstall Troubleshooter?

Yes, it’s an official Microsoft tool designed to fix installation issues. It only removes broken entries, not your files.

What if I have multiple Python versions installed?

Uninstall the one that’s causing the error, but be careful not to remove others. The error dialog usually specifies which version is affected.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →