Install confluent-kafka avro with pip

Viewed 3577

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?

3 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.

Try installing directly from github

pip install git+git://github.com/confluentinc/confluent-kafka-python.git

Solved! In my case it was python version

  1. I was using python 3.10.1 version
  2. Uninstall python 3.10.1 and python Launcher from add or remove programs
  3. Download python 3.7.0 for x64 bit using this link or download from here Link
  4. Now you can: pip install confluent-kafka[avro]
Related