...
This allows you to isolate a complete python environment, and install a specific version of Ansible. With help of some bash aliases this can be conveniently automated.
Assuming you have the required tools available, install this in your home directory:
...