Follow the instructions at pantsbuild.org/docs/installation to setup Pants.