安装
To install the LangChain package:
pip
uv
pip install -U langchain
# Requires Python 3.10+
uv add langchain
# Requires Python 3.10+
LangChain provides integrations to hundreds of LLMs and thousands of other integrations. These live in independent provider packages.
pip
uv
# Installing the OpenAI integration
pip install -U langchain-openai
# Installing the Anthropic integration
pip install -U langchain-anthropic
# Installing the OpenAI integration
uv add langchain-openai
# Installing the Anthropic integration
uv add langchain-anthropic
See the Integrations tab for a full list of available integrations.
Now that you have LangChain installed, you can get started by following the Quickstart guide.
Set up LangSmith tracing to debug your first LangChain app. Follow the tracing quickstart to get started. We recommend you also set up LangSmith Engine which monitors your traces, detects issues, and proposes fixes.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.
Edit this page on GitHub or file an issue.
Was this page helpful?
YesNo
