Install confluent-kafka for Python on Ubuntu

confluent-kafka makes use of the native librdkafka, so installation is a bit tedious.

Let's take a note:

First, put in the necessary packages:

apt-get install python-pip
apt-get install python2.7-dev
apt-get install software-properties-common

Next, add the ** confluent ** repository:

wget -qO - http://packages.confluent.io/deb/3.0/archive.key | sudo apt-key add -
add-apt-repository "deb [arch=amd64] http://packages.confluent.io/deb/3.0 stable main"

Finally, install librdkafka and confluent-kafka:

apt-get update
apt-get install librdkafka-dev
pip install confluent-kafka

that's all.

Recommended Posts

Install confluent-kafka for Python on Ubuntu
Install Python 3.3 on Ubuntu 12.04
Install OpenCV on Ubuntu + python
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
Steps to install Python environment on Ubuntu
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install TensorFlow on Ubuntu
Install python on WSL
Install Python on Pidora.
Install Scrapy on python3
Install Python 3 on Mac
Install PySide2 on Ubuntu
Install Python3.4 on CentOS 6.6
Install JModelica on Ubuntu
Install python on windows
Install Python 2.7.3 on CentOS 5.4
build Python on Ubuntu
Install Python 3.4 on Mac
Install Theano on Ubuntu 12.04
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Install Python 3.6 on Docker
Install Python (for Windows)
Install python package in personal environment on Ubuntu
[Procedure memo] Install Python3 + OpenSSL locally on Ubuntu
Install MongoDB on Ubuntu 16.04 and operate via python
Install Python and libraries for Python on MacOS Catalina
Set up Python 3.4 on Ubuntu
Install Python 3.8 on RHEL 8 (AppStream)
Use matplotlib on Ubuntu 12 & Python
Install watchdog on Windows + Python 3.3
Install Python 3.8 on CentOS 7 (SCL)
Put Python 3.x on Ubuntu
Install pandas 0.14 on python3.4 [on Mac]
Install GoLand IDE on Ubuntu
wsl Install PostgreSQL on Ubuntu 18.04
Python --Install MySQLDB on EC2
Introducing TensorFlow on Ubuntu + Python 2.7
[ROS] Install ROS (melodic) on Ubuntu (18.04)
Install Caffe on Ubuntu 14.04 (GPU)
Install Python 3.8 on CentOS 8 (AppStream)
Install Docker on WSL Ubuntu 18.04
[Python] [Chainer] [Windows] Install Chainer on Windows
Install dlib for Python (Windows)
Install psycopg2 (pgsql library for python3) on Apple Silicon
Compile and install MySQL-python for python2.7 on amazon linux
Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.
For those who can't install Python on Windows XP
Install CUDA10.1 + cuDNN7.6.5 + tensorflow-2.3.0 on Ubuntu 18.04
Install Python Pillow on Amazon Linux
Python 3.4 pyvenv fails on Ubuntu 14.04 LTS
Install Caffe on Ubuntu 14.04 (CPU mode)
Install Cheminformatics Tool RDKit for Python
Install Python3 on Sakura server (FreeBSD)
Prepare Python development environment on Ubuntu
Install Mecab and mecab-python3 on Ubuntu 14.04
install python
Building a Python environment on Ubuntu