# \[BUG/HELP\] ImportError: cannot import name 'LLM' from 'crewai' after Azure Deployment

**URL:** <https://community.crewai.com/t/bug-help-importerror-cannot-import-name-llm-from-crewai-after-azure-deployment/6360>\
**Category:** CrewAI Community Support\
**Tags:** tools\_issues, task, crewai, feature\
**Created:** [June 24, 2025, 7:56pm UTC](https://community.crewai.com/t/bug-help-importerror-cannot-import-name-llm-from-crewai-after-azure-deployment/6360 "2025-06-24T19:56:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Athul\_Nambiar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/athul_nambiar/32/3992_2.png) [@Athul\_Nambiar](https://community.crewai.com/u/Athul_Nambiar)\
**Post date:** [June 24, 2025, 7:56pm UTC](https://community.crewai.com/t/bug-help-importerror-cannot-import-name-llm-from-crewai-after-azure-deployment/6360/1 "2025-06-24T19:56:55Z")

</div>

**Hi CrewAI community,**

I’m running into an issue with my CrewAI project that I hope someone can help clarify.

## **Problem Description**

My code works perfectly on my local machine (MacBook, Python 3.11, CrewAI 0.130.0). However, when I deploy it to Azure, I get the following error:

```auto
ImportError: cannot import name 'LLM' from 'crewai' (/usr/local/lib/python3.11/site-packages/crewai/ __init__.py)

```

File “/app/AZ\_CREW/agents.py”, line 1, in   
from crewai import Agent, LLM

## **What I’ve Tried**

- Double-checked that both local and Azure environments are using `crewai==0.130.0`.
- Ensured all dependencies are up to date.
- Restarted the Azure deployment after every change.

## **Questions**

1. Is the `LLM` class still supported for import from `crewai` in version 0.130.0?
2. If not, what is the recommended way to specify LLMs in the latest CrewAI versions?
3. Has anyone else faced this issue after upgrading or deploying to cloud environments?

## **Any help or pointers would be greatly appreciated!**

Thanks in advance,  
Athul
