-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Home
GFoniX edited this page Jan 7, 2023
·
11 revisions
Install with your favorite package manager
-
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
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.7 http://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.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
-
Build:
python setup.py build
-
Install:
python setup.py install
-
-
Install it from PyPi:
pip install python-snappy
-
Ubuntu:
apt-get install libsnappy-dev
-
OSX:
brew install snappy