pwntools is best supported on Ubuntu 12.04 and 14.04, but most functionality should work on any Posix-like distribution (Debian, Arch, FreeBSD, OSX, etc.).
In order to get the most out of pwntools, you should have the following system libraries installed.
Pwntools is available as a pip package.
$ apt-get install python2.7 python2.7-dev python-pip $ pip install pwntools
Alternatively if you prefer to use the latest version from the repository:
$ git clone https://github.com/Gallopsled/pwntools $ cd pwntools $ pip install -e .