# Using AgentOps.ai in flows

**URL:** <https://community.crewai.com/t/using-agentops-ai-in-flows/2860>\
**Category:** General\
**Tags:** tools\_issues\
**Created:** [January 15, 2025, 9:13pm UTC](https://community.crewai.com/t/using-agentops-ai-in-flows/2860 "2025-01-15T21:13:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rameryp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rameryp/32/266_2.png) [@rameryp](https://community.crewai.com/u/rameryp)\
**Post date:** [January 15, 2025, 9:13pm UTC](https://community.crewai.com/t/using-agentops-ai-in-flows/2860/1 "2025-01-15T21:13:11Z")

</div>

Any input on WHERE in flow one should install the agentops calls ?  
import agentops  
agentops.init()

---

<div class="post-metadata">

**Author:** ![gabovailati](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/gabovailati/32/2343_2.png) [@gabovailati](https://community.crewai.com/u/gabovailati)\
**Post date:** [January 31, 2025, 2:22am UTC](https://community.crewai.com/t/using-agentops-ai-in-flows/2860/2 "2025-01-31T02:22:32Z")

</div>

I tried in different places and always got an error saying “ModuleNotFoundError: No module named ‘agentops’”.

---

<div class="post-metadata">

**Author:** ![DaviReis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/davireis/32/2136_2.png) [@DaviReis](https://community.crewai.com/u/DaviReis)\
**Post date:** [February 1, 2025, 10:38pm UTC](https://community.crewai.com/t/using-agentops-ai-in-flows/2860/3 "2025-02-01T22:38:25Z")

</div>

I had the same issue.  
The problem was the virtual environmet created when crewai install.  
Solved using a complete new virtal environment with python -m venv venv ant then installing everyhting needed in this venv using pip install. It include pip install crewai.  
I know this is not the instructions in crewai official documentation but it worked!

hope it helps

---

<div class="post-metadata">

**Author:** ![gabovailati](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/gabovailati/32/2343_2.png) [@gabovailati](https://community.crewai.com/u/gabovailati)\
**Post date:** [February 13, 2025, 3:59am UTC](https://community.crewai.com/t/using-agentops-ai-in-flows/2860/4 "2025-02-13T03:59:08Z")

</div>

I fixed it the same way—something weird with the virtual environment. 👍
