# ImportError: cannot import name 'Ollama' from 'crewai.llms' (unknown location)

**URL:** <https://community.crewai.com/t/importerror-cannot-import-name-ollama-from-crewai-llms-unknown-location/5307>\
**Category:** General\
**Created:** [April 13, 2025, 8:16am UTC](https://community.crewai.com/t/importerror-cannot-import-name-ollama-from-crewai-llms-unknown-location/5307 "2025-04-13T08:16:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omveer\_chaudhary](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/omveer_chaudhary/32/3389_2.png) [@omveer\_chaudhary](https://community.crewai.com/u/omveer_chaudhary)\
**Post date:** [April 13, 2025, 8:16am UTC](https://community.crewai.com/t/importerror-cannot-import-name-ollama-from-crewai-llms-unknown-location/5307/1 "2025-04-13T08:16:18Z")

</div>

I have crewai-0.114.0.  
Facing below issue  
ImportError: cannot import name ‘Ollama’ from ‘crewai.llms’ (unknown location)

---

<div class="post-metadata">

**Author:** ![maxmoura](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/maxmoura/32/4206_2.png) [@maxmoura](https://community.crewai.com/u/maxmoura)\
**Post date:** [April 13, 2025, 10:53am UTC](https://community.crewai.com/t/importerror-cannot-import-name-ollama-from-crewai-llms-unknown-location/5307/2 "2025-04-13T10:53:42Z")

</div>

Welcome!

I recommend checking out [this other thread](https://community.crewai.com/t/how-to-get-crewai-to-properly-use-ollama-models/5117), where we talk about Ollama models. There’s even an important tip there about Ollama’s default 2000-token limit.

---

<div class="post-metadata">

**Author:** ![zinyando](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/zinyando/32/4435_2.png) [@zinyando](https://community.crewai.com/u/zinyando)\
**Post date:** [April 13, 2025, 3:43pm UTC](https://community.crewai.com/t/importerror-cannot-import-name-ollama-from-crewai-llms-unknown-location/5307/3 "2025-04-13T15:43:08Z")

</div>

Can you share a bit more context or code that invokes the error?

Are you setting up the models using `LLM` module? [LLMs - CrewAI](https://docs.crewai.com/concepts/llms#ollama-local-llms)
