Breaking ChangeAll platformslangchain 0.2+

ImportError: Chroma moved from langchain.vectorstores to langchain_community

pip install langchain-community
>>> from langchain.vectorstores import Chroma
LangChainDeprecationWarning: Importing Chroma from langchain.vectorstores is deprecated.
Please import from langchain_community.vectorstores.
# On langchain 0.2+:
ImportError: cannot import name 'Chroma' from 'langchain.vectorstores'

In langchain 0.2, vector stores were split out of the core langchain package into langchain-community. Imports from langchain.vectorstores still trigger a deprecation warning in 0.1.x and raise ImportError in 0.2+. You must install langchain-community and update the import path.

Any · langchain 0.2+
langchain.vectorstores · failslangchain_community · ok
Any · langchain 0.1.x
langchain.vectorstores · warnslangchain_community · ok

1Install langchain-community and update importEasiest

Install the community package if you haven't already, then update the import path. No other code changes required.

pip install langchain-community chromadb

# Before (broken on 0.2+):
# from langchain.vectorstores import Chroma

# After:
from langchain_community.vectorstores import Chroma

langchain-community · Compatibility Matrix
See install results across all Python versions and operating systems
Observed in 22 searches · Last verified Aug 2026
ImportError: Chroma moved from langchain.vectorstores to langchain_community — langchain-community