Just follow the docs http://docs.ansible.com/ansible/latest/intro_installation.html#running-from-source