<commit_before>.. _install:

==========
Installing
==========

kazoo can be installed via ``pip`` or ``easy_install``:

.. code-block:: bash

    $ pip install kazoo

You will also need the Python Zookeeper C binding installed. There's an
easy to install statically compiled version:

.. code-block:: bash

    $ pip install zc-zookeeper-static

Or if your OS distribution includes a python-zookeeper package, that can
be installed.

.. warning::

    Unless you're using a recent Ubuntu (12.04+), its recommended that you use
    the `zc-zookeeper-static` static library as it includes some memory leak
    patches that are not necessarily in Python Zookeeper OS distributions.<commit_msg>note upstream availability of memory leak patches<commit_after>.. _install:

==========
Installing
==========

kazoo can be installed via ``pip`` or ``easy_install``:

.. code-block:: bash

    $ pip install kazoo

You will also need the Python Zookeeper C binding installed. There's an
easy to install statically compiled version:

.. code-block:: bash

    $ pip install zc-zookeeper-static

Or if your OS distribution includes a python-zookeeper package, that can
be installed.

.. warning::

    Unless you're using a recent Ubuntu (12.04+), its recommended that you use
    the `zc-zookeeper-static` static library as it includes some memory leak
    patches that are not necessarily in Python Zookeeper OS distributions. The
    patches are available upstream in 3.3.6 and 3.4.4.
{'fraction_non_alphanumeric': 0.09830508474576272, 'fraction_numerical': 0.009491525423728813, 'mean_word_length': 3.839344262295082, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '60372', 'n_tokens_mistral': 440, 'n_tokens_neox': 398, 'n_words': 184}