Python 3.10 DLL Error on Windows 7: Fix Guide
In this article
Python 3.10 does not officially support Windows 7, and the "python310.dll not found" or "api-ms-win-core-path-l1-1-0.dll is missing" error is the usual symptom. The official Python 3.10 installer is built for Windows 8.1 and later, so on Windows 7 it either refuses to install or installs but fails to launch. The practical fix is to install Python 3.8.10, the last Python release that officially supports Windows 7, and run your code there. If you must stay on 3.10, you need the community-built Windows 7-compatible builds and the Universal C Runtime update, described below.
What You'll Need
- A Windows 7 PC with Service Pack 1 installed and all Windows Updates applied.
- Administrator rights to install updates and software.
- The official Python installer for a version that supports Windows 7 (3.8.10) from python.org, or a trusted community build of 3.10 for Windows 7.
- The Microsoft Universal C Runtime (KB2999226) update, which many Windows 7 machines are missing.
- A way to back up your project files before changing Python versions.
Step-by-Step
- Confirm the exact error. Open Command Prompt and run
python --versionor launch your script. Note whether the message namespython310.dll,api-ms-win-core-path-l1-1-0.dll, orVCRUNTIME140.dll. Each points to a different missing component, so this decides which step below matters most. - Install the Universal C Runtime update. On Windows 7, download KB2999226 from Microsoft's official Update Catalog and install it, then restart. This update supplies the API set that Python 3.10's runtime expects. If Windows Update already installed it, the installer will say so; skip to the next step.
- Install the Visual C++ Redistributable. Download the official Microsoft Visual C++ Redistributable for Visual Studio 2015–2022 (both x86 and x64 if you are unsure which Python build you have) and install it. This provides
VCRUNTIME140.dlland related files that Python depends on. - Decide on your Python version. If your project does not require 3.10 specifically, uninstall any broken 3.10 install, then install Python 3.8.10 from python.org using the Windows installer. During setup, tick "Add Python 3.8 to PATH". This is the officially supported route on Windows 7 and avoids the DLL problem entirely.
- If you need 3.10 features, use a compatible build. The Python.org 3.10 installer will not work on Windows 7. Instead, use a community-maintained Windows 7 build of Python 3.10 from a reputable source, install it to a clean folder such as
C:\Python310, and add that folder to your PATH manually via System Properties > Advanced > Environment Variables. Verify withpython --versionin a new Command Prompt window. - Repair a partially installed 3.10. If 3.10 installed but fails to start, open Control Panel > Programs and Features, select Python 3.10, and choose Repair. If Repair is unavailable, uninstall it fully, delete the leftover
C:\Users\<you>\AppData\Local\Programs\Python\Python310folder, and reinstall. - Check your PATH order. Run
where pythonin Command Prompt. If it points to a broken 3.10 folder while a working 3.8 is also installed, reorder the entries in Environment Variables so the working version comes first, or remove the broken entry. - Reinstall your packages. After switching versions, recreate your virtual environment (
python -m venv venv) and reinstall dependencies withpip install -r requirements.txt. Packages built for 3.10 may not have Windows 7-compatible wheels for 3.8, so check each install for errors.
Common Mistakes
- Downloading
python310.dllfrom a "DLL fix" website. Those files are often outdated or malicious, and dropping them into System32 rarely works because the real problem is a missing runtime, not a single file. - Installing the 64-bit Visual C++ Redistributable when Python is 32-bit, or vice versa. Install both to be safe.
- Assuming Windows 7 SP1 is enough. Without the Universal C Runtime update, Python 3.10's runtime cannot load on Windows 7 at all.
- Forgetting to open a new Command Prompt after changing PATH. The old window keeps the old environment.
- Mixing a Microsoft Store Python install with a python.org install. Pick one and remove the other to avoid confusing
where pythonresults.
Tips
- Keep a note of the exact Python version and package versions your project needs; recreating an environment is much faster with that list.
- Use virtual environments for every project so a broken global install does not block your work.
- If you are maintaining Windows 7 machines long-term, plan a move to a supported Windows version, since Python 3.9 and later also drop Windows 7 support.
- Run
python -c "import sys; print(sys.version)"to confirm exactly which interpreter your terminal is using.
Troubleshooting
If the error persists after installing the C Runtime and the Visual C++ Redistributable, check Windows Update history to confirm KB2999226 actually installed; a failed update leaves the same DLL error in place. If python --version still fails, run the installer again and choose Repair, then reboot. If a specific package fails to import with a DLL error, it is usually a compiled extension built for a different Python version; uninstall it and install a version with a Windows 7-compatible wheel, or build it from source. If you see the error only inside an IDE, point the IDE's interpreter setting at the correct Python executable rather than relying on PATH. As a last resort, uninstall every Python version, delete leftover Python folders in AppData\Local\Programs\Python and C:\Python*, reboot, and install one supported version cleanly.
Frequently Asked Questions
Does Python 3.10 officially support Windows 7?
No. Python 3.9 and later officially require Windows 8.1 or newer. Python 3.8.10 is the last release that officially supports Windows 7.
Can I just copy python310.dll into System32?
It is not recommended and usually does not fix the problem. The error comes from missing runtime components, so install the official Universal C Runtime and Visual C++ Redistributable instead.
Why does the installer say Windows 7 is not supported?
The official 3.10 installer checks the Windows version and blocks installation on Windows 7. That is expected behaviour, not a bug.
Will pip packages work if I switch to Python 3.8?
Most pure-Python packages will. Packages with compiled extensions need a wheel that supports Python 3.8 on Windows 7; if pip tries to build from source and fails, look for an older compatible version of that package.
Is it safe to use a community build of Python 3.10 for Windows 7?
Only if it comes from a source you trust, since it is not an official python.org release. For most users, staying on Python 3.8.10 is the safer choice.
Can I run Python 3.10 in a virtual machine instead?
Yes. Running a newer Windows version in a virtual machine and installing Python 3.10 there avoids the Windows 7 limitation entirely, at the cost of extra resources.