# Default CrewAI virtual environment - Conflict with Conda

**URL:** <https://community.crewai.com/t/default-crewai-virtual-environment-conflict-with-conda/1116>\
**Category:** CrewAI Community Support\
**Tags:** crewai\
**Created:** [October 29, 2024, 3:49pm UTC](https://community.crewai.com/t/default-crewai-virtual-environment-conflict-with-conda/1116 "2024-10-29T15:49:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcl-code](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rcl-code/32/820_2.png) [@rcl-code](https://community.crewai.com/u/rcl-code)\
**Post date:** [October 29, 2024, 3:49pm UTC](https://community.crewai.com/t/default-crewai-virtual-environment-conflict-with-conda/1116/1 "2024-10-29T15:49:46Z")

</div>

I’ve been using a Conda environment with all necessary packages to run CrewAI since version 0.5. However, after upgrading to the latest version, I noticed that a default `.venv` folder is generated in my project directory.

Initially, this didn’t seem like an issue, but when I tried to install the `agentops` package, I encountered two problems:

1. **sys.path modification** : When running `crewai run`, the command includes the `<crewai_project>/.venv/.../site-packages` directory in `sys.path`. However, it also removes the default directory of my Conda environment (`<conda_env>/.../site-packages`) from `sys.path`.

2. **Package installation issues** : When running `pip install agentops`, the package is installed correctly in my Conda environment but not in the `.venv` environment created by CrewAI. Attempting to force-install on the `.venv` environment fails, as there is no `pip` command available in the `/bin` folder.

These issues make using CrewAI with Conda quite frustrating. I hope I’m missing something or that this issue will be resolved soon. In the meantime, I’ll have to explore alternative approaches and avoid using Conda with CrewAI.

---

<div class="post-metadata">

**Author:** ![rcl-code](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rcl-code/32/820_2.png) [@rcl-code](https://community.crewai.com/u/rcl-code)\
**Post date:** [November 5, 2024, 11:19am UTC](https://community.crewai.com/t/default-crewai-virtual-environment-conflict-with-conda/1116/2 "2024-11-05T11:19:33Z")

</div>

For anyone interested, I found the following workaround to work in my case:

- Go to the default .venv created by crewai
- Edit the pyvenv.cfg with the following line:
  - `include-system-site-packages = true`

This will make the .venv of crewai use the agentops package installed on my conda environment (I remind that I couldnt install the `agentops` package on the .venv of crewai)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/1X/ecda97e72f77c7100e0a761444b1c991925cc789.png) [@system](https://community.crewai.com/u/system)\
**Post date:** [November 6, 2024, 11:20am UTC](https://community.crewai.com/t/default-crewai-virtual-environment-conflict-with-conda/1116/3 "2024-11-06T11:20:23Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
