Error / Installation
The code execution cannot continue because VCRUNTIME140.dll was not found – the Visual C++ runtime is missing (also MSVCP140.dll / VCRUNTIME140_1.dll)
A program was built with Microsoft Visual C++ and cannot find the required runtime libraries on your PC.
The message
The code execution cannot proceed because VCRUNTIME140.dll was not found. Reinstalling the program may fix this problem. (ebenso: MSVCP140.dll / VCRUNTIME140_1.dll; deutsch: Die Ausführung des Codes kann nicht fortgesetzt werden, da VCRUNTIME140.dll nicht gefunden wurde.)
Affects: Python
Why is this happening?
Programs created with the Microsoft C++ tools need the “Microsoft Visual C++ Redistributable.” It must be at least as new as the tools used to build the program and match the architecture (x64 or x86). If it is missing or too old, DLLs like VCRUNTIME140.dll, VCRUNTIME140_1.dll, or MSVCP140.dll are missing.
How to fix it
- Download the current Visual C++ Redistributable for x64 directly from Microsoft: https://aka.ms/vc14/vc_redist.x64.exe. VCRUNTIME140_1.dll is only included in the x64 package.
- Run the file. If the installation fails, restart it by right-clicking and choosing “Run as administrator.”
- If the program is a 32-bit application, also install the x86 package: https://aka.ms/vc14/vc_redist.x86.exe.
- Then restart the PC or the program.
- If the installation still does not work, install all Windows updates, restart, and briefly turn off your antivirus only for the installation (then turn it back on).
- If the message still appears, reinstall the affected program.
Better not: Do not download the DLL files individually from DLL download sites; install only the package signed by Microsoft.
Terms for this
Similar errors
- 'python' is not recognized or opens the Microsoft Store
- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x – a package does not match the installed NumPy version
- A1111: INCOMPATIBLE PYTHON VERSION / Couldn't install torch
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- ImportError: DLL load failed while importing …: The specified module could not be found – a Python package is missing a Windows DLL
Sources
- https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
- https://learn.microsoft.com/en-us/cpp/windows/troubleshoot-vc-redistributable-installation-issues
- https://learn.microsoft.com/en-us/answers/questions/84775/vcruntime140-1-dll-was-not-found
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.