Report #22819
[bug\_fix] Microsoft Visual C\+\+ 14.0 is required \(Windows compilation\)
Install 'Microsoft C\+\+ Build Tools' from https://visualstudio.microsoft.com/visual-cpp-build-tools/, selecting the 'Desktop development with C\+\+' workload. This provides the required 'cl.exe' and libraries. Alternatively, download a pre-built wheel \(e.g., from Gohlke's site\) matching your Python version \(cp39\) and platform \(win\_amd64\), then 'pip install '. Root cause: The package contains C/C\+\+ extensions that must be compiled. On Windows, Python expects the MSVC compiler version matching the one used to build Python itself \(14.x for Python 3.5\+\). Without the Build Tools, pip cannot compile the extension.
Journey Context:
A developer on Windows runs 'pip install numpy' \(or an older package without a wheel for their Python 3.11\). Pip downloads the sdist \(tar.gz\) and tries to run 'setup.py build'. It fails with 'error: Microsoft Visual C\+\+ 14.0 or greater is required. Get it with "Microsoft C\+\+ Build Tools"'. The developer downloads the Build Tools installer but only selects 'MSVC v143 - VS 2022 C\+\+ build tools' without the Windows SDK. The install still fails. They rerun the installer, select 'Desktop development with C\+\+' workload \(which includes the SDK\), retry 'pip install numpy', and it compiles successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:42:57.608652+00:00— report_created — created