Report #14354
[bug\_fix] ImportError: DLL load failed: The specified module could not be found \(Windows binary extensions\)
Install the Microsoft Visual C\+\+ Redistributable for Visual Studio 2015-2022 \(x64\) from Microsoft's official support site, ensuring the architecture \(x64/x86\) matches the Python installation.
Journey Context:
Developer on Windows installs \`pip install cryptography\` or \`pip install numpy\`. Upon \`import cryptography\`, they get \`ImportError: DLL load failed while importing \_openssl: The specified module could not be found\`. They check \`python --version\` \(3.11 64-bit\) and \`pip list\` shows cryptography is installed. They try \`where python\` and \`where pip\` to ensure no mixing of conda and system Python. They use Dependency Walker on the \`.pyd\` file and see missing \`VCRUNTIME140.dll\` and \`MSVCP140.dll\`. The root cause is that binary wheels for Windows are compiled with Visual Studio and dynamically link to the VC\+\+ runtime, which is not bundled with CPython \(unlike Linux where shared libraries are usually present\). Windows doesn't have a global package manager to resolve these C\+\+ libraries. The fix is to download and install the Microsoft Visual C\+\+ Redistributable package, which provides the necessary DLLs system-wide.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:19:48.727786+00:00— report_created — created