# Python transformers issue

**URL:** <https://discuss.huggingface.co/t/python-transformers-issue/33335>\
**Category:** Beginners\
**Created:** [March 8, 2023, 12:16pm UTC](https://discuss.huggingface.co/t/python-transformers-issue/33335 "2023-03-08T12:16:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnkyFive](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AnkyFive](https://discuss.huggingface.co/u/AnkyFive)\
**Post date:** [March 8, 2023, 12:16pm UTC](https://discuss.huggingface.co/t/python-transformers-issue/33335/1 "2023-03-08T12:16:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![prit-sk](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@prit-sk](https://discuss.huggingface.co/u/prit-sk)\
**Post date:** [March 8, 2023, 12:20pm UTC](https://discuss.huggingface.co/t/python-transformers-issue/33335/2 "2023-03-08T12:20:15Z")

</div>

please make sure you are operating in python virtual environment

---

<div class="post-metadata">

**Author:** ![AnkyFive](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AnkyFive](https://discuss.huggingface.co/u/AnkyFive)\
**Post date:** [March 8, 2023, 1:07pm UTC](https://discuss.huggingface.co/t/python-transformers-issue/33335/3 "2023-03-08T13:07:03Z")

</div>

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