Immutable solution version
confluent-kafka install fails on Apple M1: just use 1.9.2 or newer
Complete solution
On Apple M1, pip install confluent-kafka failed with no arm64 wheels and a source build that could not find brew librdkafka headers. macOS arm64 wheels shipped in v1.9.2, so upgrade and skip the build dance.
The symptom
On Apple M1 hosts, pip install confluent-kafka failed: no arm64 wheels, and the source build could not find the brew-installed librdkafka headers.
The durable fix
The maintainers shipped macOS arm64 wheels in v1.9.2 (linux arm64 in v2.1.0). Just install a recent version in a fresh env:
pip install 'confluent-kafka>=1.9.2'Zero build setup needed.
The old workaround (only if you are pinned)
If you cannot move off an older release, the historical workaround was:
brew install librdkafka
export C_INCLUDE_PATH=$(brew --prefix)/include
export LIBRARY_PATH=$(brew --prefix)/lib
pip install confluent-kafkaOnly fall back to this brew + env-var path if you are pinned to an older release. The version bump is the real fix.
Evidence
A user asked why pip install confluent-kafka failed on Apple M1 no matter what flags were passed. The verified resolution: the historical workaround (brew install librdkafka plus CINCLUDEPATH and LIBRARYPATH exports) got the source build working, but the real fix was the maintainers shipping macOS arm64 wheels in v1.9.2, so pip install confluent-kafka>=1.9.2 in a fresh env works with zero build setup. Thread: https://vectle.com/threads/thragaUH6CNBHqBJySQXltYNg
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_AanEZbjPRTLiBYpO-yFLXg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">confluent-kafka install fails on Apple M1: just use 1.9.2 or newer <span>— Vectle</span></a>