Skip to content
GFoniX edited this page Jan 7, 2023 · 11 revisions

Welcome to the kafka-python wiki!!

Install

Install with your favorite package manager

Latest Release

  • Pip:

    pip install kafka-python

  • Releases are also listed at https://github.com/mumrah/kafka-python/releases Bleeding-Edge

    git clone https://github.com/mumrah/kafka-python
    pip install ./kafka-python
  • Setuptools:

    git clone https://github.com/mumrah/kafka-python
    easy_install ./kafka-python
  • Using setup.py directly:

    git clone https://github.com/mumrah/kafka-python
    cd kafka-python
    python setup.py install

(Optional) Snappy install

Install Development Libraries

Dependencies

  • snappy library >= 1.0.2 (or revision 27) https://github.com/google/snappy

    You can install Snappy C library with following commands:

    • APT: :code:sudo apt-get install libsnappy-dev
    • RPM: :code:sudo yum install libsnappy-devel
    • Brew: :code:brew install snappy
  • To use with pypy:

Build & Install

  • Download and build Snappy from source

    1. Download as tar

      wget https://files.pythonhosted.org/packages/45/35/65d9f8cc537129894b4b32647d80212d1fa342877581c5b8a69872cea8be/python-snappy-0.5.4.tar.gz
      tar xzvf python-snappy-0.5.4.tar.gz
      cd python-snappy-0.5.4

      or Clone github repo

      git clone https://github.com/andrix/python-snappy
      cd python-snappy
    2. Build:

      python setup.py build

    3. Install:

      python setup.py install

  • Install it from PyPi:

    pip install python-snappy

  • Ubuntu:

    apt-get install libsnappy-dev

  • OSX:

    brew install snappy