- M1 安装 confluent_kafka 步骤
# 升级, 一定要做, 新版本要升级
brew update
# 安装 librdkafka
brew install librdkafka
# 设置依赖的 C lib
C_INCLUDE_PATH=/opt/homebrew/Cellar/librdkafka/1.9.1/include
LIBRARY_PATH=/opt/homebrew/Cellar/librdkafka/1.9.1/lib
export C_INCLUDE_PATH
export LIBRARY_PATH
# 安装 confluent_kafka
python3 -m pip install confluent_kafka