The easiest way to install is using pip:

pip install astroalign

This will install the latest stable version on PIPy.

If you want to use the latest development version from github, unpack or clone the repo on your local machine, change the directory to where is, and install using setuptools:

python install

or pip:

pip install .