Report #56379
[bug\_fix] pip install tries to build package from source and fails with error: Microsoft Visual C\+\+ 14.0 is required or gcc error, despite wheels existing on PyPI
Upgrade pip to the latest version \(python -m pip install --upgrade pip\) to recognize manylinux2014/manylinux\_2\_28 tags, or install from conda-forge. On Alpine Linux, install build-base. Root cause: The platform \(e.g., Alpine with musl libc, old glibc, or pip <20\) doesn't match the manylinux platform tags. Pip falls back to the source distribution which requires a C compiler to build.
Journey Context:
You are on an Alpine Linux Docker container \(python:3.9-alpine\). You run pip install numpy. It downloads the sdist instead of the wheel and starts compiling, eventually failing because 'gcc' is not found. You check PyPI and see there are manylinux wheels but your pip didn't select them. You realize Alpine uses musl libc, not glibc, so manylinux wheels are incompatible. You switch to python:3.9-slim \(Debian-based\) or install numpy via apk add py3-numpy. Alternatively, upgrading pip on a standard Linux fixes manylinux2014 detection issues if the pip was very old.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:07:29.221187+00:00— report_created — created