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:
-
sys.path modification : When running
crewai run, the command includes the<crewai_project>/.venv/.../site-packagesdirectory insys.path. However, it also removes the default directory of my Conda environment (<conda_env>/.../site-packages) fromsys.path. -
Package installation issues : When running
pip install agentops, the package is installed correctly in my Conda environment but not in the.venvenvironment created by CrewAI. Attempting to force-install on the.venvenvironment fails, as there is nopipcommand available in the/binfolder.
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.