Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install confluent-kafka avro with pip

I'm trying to install the avro package for confluent-kafka with python3 on macOs Sierra.

Installing the confluent-kafka package works fine, no issues. The problem is when I try to install the avro package:

pip install confluent-kafka[avro]

I just get an error message from the bash, saying:

no matches found: confluent-kafka[avro]

How can I install this package? Anyone else that have managed to do it on mac?

like image 733
user16655 Avatar asked Oct 20 '25 15:10

user16655


2 Answers

Assuming you are not using bash (in my case it was zsh), the [] might mess with your shell. The following should solve this:

pip install "confluent-kafka[avro]"

For me this worked with the default install from pypi, no need for the github URL.

like image 164
f0xdx Avatar answered Oct 23 '25 07:10

f0xdx


Try installing directly from github

pip install git+git://github.com/confluentinc/confluent-kafka-python.git
like image 42
oshaiken Avatar answered Oct 23 '25 08:10

oshaiken