- Notifications
You must be signed in to change notification settings - Fork1.4k
GFoniX edited this pageJan 7, 2023 ·11 revisions
Install with your favorite package manager
Pip:
pip install kafka-pythonReleases are also listed athttps://github.com/mumrah/kafka-python/releasesBleeding-Edge
git clone https://github.com/mumrah/kafka-pythonpip install ./kafka-python
Setuptools:
git clone https://github.com/mumrah/kafka-pythoneasy_install ./kafka-python
Using setup.py directly:
git clone https://github.com/mumrah/kafka-pythoncd kafka-pythonpython setup.py install
Install Development Libraries
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
- APT: :code:
To use with pypy:
- cffi >= 0.7http://cffi.readthedocs.org/
- Supports Python 2.7 and Python 3
Download and build Snappy from source
Download as tar
wget https://files.pythonhosted.org/packages/45/35/65d9f8cc537129894b4b32647d80212d1fa342877581c5b8a69872cea8be/python-snappy-0.5.4.tar.gztar xzvf python-snappy-0.5.4.tar.gzcd python-snappy-0.5.4or Clone github repo
git clone https://github.com/andrix/python-snappycd python-snappyBuild:
python setup.py buildInstall:
python setup.py install
Install it from PyPi:
pip install python-snappyUbuntu:
apt-get install libsnappy-devOSX:
brew install snappy