This packages is available on PyPI:
$ pip install dtaidistance
Depending on your system, this might not install the C version. To guarantee installation of the C extensions (which enable much faster DTW alignment), follow the instructions in the “From Source” section below.
If you want to install the latest, unreleased version using pip:
$ pip install git+https://github.com/wannesm/dtaidistance.git#egg=dtaidistance