Ubuntu 18.04 Python3.7 Confluent-Kafka No Module Named 'Confluent_Kafka. Cimpl'

I have VM run on ubuntu 18.04. On that I installed:

  • python3.7
  • confluent-kafka when run python script, I met this message error:
    from .cimpl import (Consumer, #noqa
    
    ModuleNotFoundError: no module named 'confluent_kafka.cimpl'

I've tried to run/install/remove in many ways but this error still occurred.

1 Answer

Install modules confluent_kafka

pip3 install confluent_kafka

or try these steps

sudo apt-get install librdkafka1 librdkafka-dev libssl-dev liblz4-dev libsasl2-dev
git clone 
cd confluent-kafka-python; ./configure ; make ; sudo make install

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest