# Python transformers issue

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-transformers-issue%2F33335%3E%5C
**Category:** Beginners\
**Created:** [March 8, 2023, 12:16pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-transformers-issue%2F33335 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAnkyFive)%5C
**Post date:** [March 8, 2023, 12:16pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-transformers-issue%2F33335%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fprit-sk)%5C
**Post date:** [March 8, 2023, 12:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-transformers-issue%2F33335%2F2 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAnkyFive)%5C
**Post date:** [March 8, 2023, 1:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpython-transformers-issue%2F33335%2F3 "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
