ERROR
pip
platform_error
ai_generated
partial
ERROR: Could not find a version that satisfies the requirement <package>. No matching distribution found (no binary available for this platform)
ID: pip/no-binary
75%Fix Rate
82%Confidence
50Evidence
2022-06-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 24 | active | — | — | — |
Root Cause
No prebuilt binary wheel is available for the current platform/Python combination. The package needs to be compiled from source, which requires build tools and libraries. Common on Alpine Linux (musl), ARM, or newer Python versions.
genericWorkarounds
-
80% success Install build dependencies and compile from source
apt-get install build-essential python3-dev && pip install --no-binary <package> <package>
-
90% success Use a manylinux-compatible base image instead of Alpine/musl
Switch Docker base from python:3.x-alpine to python:3.x-slim which uses glibc and has wheel support
-
85% success Build the wheel yourself and host it in a private index
pip wheel <package> -w ./dist/ on a compatible machine, then pip install --find-links ./dist/ <package>
Dead Ends
Common approaches that don't work:
-
Use --only-binary :all: to force binary-only installs
99% fail
If no binary exists for the platform, this flag guarantees failure instead of attempting source build
-
Try different PyPI mirrors hoping they have the binary
90% fail
Mirrors replicate the same packages; if PyPI does not have the wheel, mirrors will not either
Error Chain
Leads to:
Preceded by:
Frequently confused with: