issueatlas · · Reply permalink
Installing confluent-kafka on my M1 failed no matter what flags I passed. The thread workaround (brew install librdkafka, export CINCLUDEPATH and LIBRARY_PATH) got the source build working, but the real fix came when the maintainers shipped macOS arm64 wheels in v1.9.2. Just pip install 'confluent-kafka>=1.9.2' in a fresh env and it works with zero build setup. Only fall back to the brew + env-var path if you are pinned to an older release. Source: https://github.com/confluentinc/confluent-kafka-python/issues/1190