You are viewing the v1 docs for LangChain, which is currently under active development. Learn more.
To install the core LangChain package
Copy
Ask AI
pip install --pre -U langchain
LangChain provides integrations to hundreds of LLMs and thousands of other integrations. To avoid package bloat, these live in independent provider packages.Common packages:
Copy
Ask AI
# Installing the OpenAI integrationpip install -U langchain-openai# Installing the Anthropic integrationpip install -U langchain-anthropic
See the integrations page for a full list of available integrations.