When working on complex project, always install your own version of ansible in a dedicated virtual environment:
virtualenv -p python3 .venv
. .venv/bin/activate
Normally, you have at least a requirements.txt
file determining python dependencies versions: