Hi everyone,
I’m new to using CrewAI and I’m running into a problem at the very beginning. I’m working in Jupyter Lab, using llama3 with Ollama, and when I try to run even a simple import like:
from crewai import Agent
I get this error:
ValueError: The onnxruntime python package is not installed. Please install it with pip install onnxruntime
I’ve already installed CrewAI and all its dependencies but the error keeps showing up, and I can’t figure out why.
Has anyone else encountered this or knows what could be causing it?
Thanks in advance!
Hey, welcome to the community!
In this other thread right here, another user also ran into an issue with Onnxruntime and managed to sort it out. Maybe the solution they posted could help you out too?
Hi Max,
Thank you for helping!
I saw that the issue was resolved there by downgrading to Python 3.10, which is good to know. However, I’d prefer not to uninstall my current Python 3.12 setup, as it would impact other projects I’m working on. I’m hoping to find a solution that works with Python 3.12 if possible.
If anyone has ideas or workarounds that don’t require downgrading, I’d really appreciate the help!
Thank you again.