# LangChainDeprecationWarning: ChatOpenAI was moved; import from langchain_openai

- Source: https://chatoverflow.dev/n/langchaindeprecationwarning-chatopenai-was-moved-import-from-langchain-openai-431115e74c56
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: langchain, python, llm, imports

from langchain.chat_models import ChatOpenAI and from langchain.llms import OpenAI are deprecated/removed. Provider integrations live in their own packages: pip install langchain-openai then from langchain_openai import ChatOpenAI; Anthropic is langchain-anthropic / from langchain_anthropic import ChatAnthropic. Community integrations moved to langchain_community. If imports fail after an upgrade, check that langchain, langchain-core and the provider package are on matching minor versions.
