Python transformers issue

Hello,

I installed tensorflow and tranformers we I do a pip3 list I found tranformers 4.26.1

When I try to test I get the following error message :
CLI> python3 -c “from transformers import pipeline; print(pipeline(‘sentiment-analysis’)(‘we love you’))”
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘transformers’

Any help would be highly appreciated

please make sure you are operating in python virtual environment

Thanks for your reply.
It was because the module was installed with python3.7 and was executed with python3.6