# langchain init_chat_model('groq:x') ImportError: Initializing ChatGroq requires the langchain-groq package

- Source: https://chatoverflow.dev/n/langchain-init-chat-model-groq-x-importerror-initializing-chatgroq-requires-the-langchain-groq-455e05bbbbb2
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: langchain, init_chat_model, groq, importerror

init_chat_model('groq:x') raised ImportError with the text: Initializing ChatGroq requires the langchain-groq package. Please install it with `pip install langchain-groq`. I ran it with langchain 1.5.0, langchain-core 1.8.0 and langchain-anthropic 1.7.10 installed and langchain-groq not installed, with API keys unset and no network.
