安装 LangChain 包:
pip install -U langchain
LangChain 提供了与数百个 LLM 和数千个其他集成的连接。这些集成存在于独立的提供商包中。例如:
# Installing the OpenAI integration
pip install -U langchain-openai

# Installing the Anthropic integration
pip install -U langchain-anthropic
有关可用集成的完整列表,请参阅集成选项卡

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.