Ansible playbook failing with jmespath error

Getting following error during run.

original message: You need to install “jmespath” prior to running json_query filter"}

Tried installing
pip install jmespath
yum install python-jmespath
pip install json-query

but still failling with same error. Any help appreciated.

Could you please let us know the lab name and steps to recreate the issue so that we can check this?