Report #83388
[bug\_fix] ImportError: DLL load failed while importing \_multiarray\_umath: The specified module could not be found.
Install the Microsoft Visual C\+\+ Redistributable for Visual Studio 2015, 2017 and 2019 \(x64\) from Microsoft's official support site. Alternatively, switch to using Conda instead of pip on Windows, as Conda manages the required C runtime libraries as dependencies.
Journey Context:
A developer on Windows 10 installs Python 3.10 from python.org, creates a venv, and runs \`pip install numpy\`. Installation reports success, but when they execute \`import numpy\`, they encounter an ImportError about DLL load failure. They check that numpy is installed with \`pip list\`, and verify they are in the correct venv. They try reinstalling with \`pip install --force-reinstall --no-cache-dir numpy\` but the error persists. They search the error message and find references to missing Visual C\+\+ libraries. Initially confused because they have Visual Studio Build Tools installed, they realize that the Build Tools provide the compiler, but the runtime libraries \(MSVCP140.dll, VCRUNTIME140.dll\) must be present in the system PATH or system32. After downloading and installing the redistributable from Microsoft's official site, the import succeeds immediately without reinstalling numpy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:33:23.157542+00:00— report_created — created