LangChain如何安装
langchain安装主要是python的包安装,但安装方式有两种第一种是原生的pip第二种是用对python的包管理器的安装方式 第一种pip安装 [代码] 第二种uv安装 [代码] 下面是针对langchain的对llm提供的各种集成安装也分为两种 第一种pip安装 [代码] 第二种uv安装 [代码] 以上就是关…
作者:lh
langchain安装主要是python的包安装,但安装方式有两种第一种是原生的pip第二种是用对python的包管理器的安装方式
第一种pip安装
pip install -U langchain
第二种uv安装
uv add langchain
下面是针对langchain的对llm提供的各种集成安装也分为两种
第一种pip安装
# 安装 OpenAI 集成 pip install -U langchain-openai # 安装 Anthropic 集成 pip install -U langchain-anthropic
第二种uv安装
# 安装 OpenAI 集成 uv add langchain-openai # 安装 Anthropic 集成 uv add langchain-anthropic
以上就是关于对langchain的安装方式欢迎交流学习