hpack is trivial to install from the Python Package Index. Simply run:
$ pip install hpack
Alternatively, feel free to download one of the release tarballs from our GitHub page, extract it to your favourite directory, and then run
$ python setup.py install
hpack has no external dependencies.
If you want to use nghttp2 with hpack, all you need to do is install it along with its Python bindings. Consult nghttp2’s documentation for instructions on how to install it.