mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-09 03:15:19 +03:00
+26









Erick Friis
Harrison Chase
jacoblee93
Leonid Ganeline
Leonid Kuligin
Averi Kitsch
Nuno Campos
Nuno Campos
Bagatur
Eugene Yurtsev
Martín Gotelli Ferenaz
Fayfox
Eugene Yurtsev
Dawson Bauer
Ravindu Somawansa
Dhruv Chawla
ccurme
Bagatur
WeichenXu
Benito Geordie
kartikTAI
Kartik Sarangmath
Sevin F. Varoglu
MacanPN
Prashanth Rao
Hyeongchan Kim
sdan
Guangdong Liu
Rahul Triptahi
Rahul Tripathi
pjb157
Eun Hye Kim
kaijietti
Pengcheng Liu
Tomer Cagan
Christophe Bornet
21d14549a9
current python.langchain.com is building from branch `v0.1`. Iterate on v0.2 docs here. --------- Signed-off-by: Weichen Xu <weichen.xu@databricks.com> Signed-off-by: Rahul Tripathi <rauhl.psit.ec@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com> Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Leonid Ganeline <leo.gan.57@gmail.com> Co-authored-by: Leonid Kuligin <lkuligin@yandex.ru> Co-authored-by: Averi Kitsch <akitsch@google.com> Co-authored-by: Nuno Campos <nuno@langchain.dev> Co-authored-by: Nuno Campos <nuno@boringbits.io> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com> Co-authored-by: Martín Gotelli Ferenaz <martingotelliferenaz@gmail.com> Co-authored-by: Fayfox <admin@fayfox.com> Co-authored-by: Eugene Yurtsev <eugene@langchain.dev> Co-authored-by: Dawson Bauer <105886620+djbauer2@users.noreply.github.com> Co-authored-by: Ravindu Somawansa <ravindu.somawansa@gmail.com> Co-authored-by: Dhruv Chawla <43818888+Dominastorm@users.noreply.github.com> Co-authored-by: ccurme <chester.curme@gmail.com> Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: WeichenXu <weichen.xu@databricks.com> Co-authored-by: Benito Geordie <89472452+benitoThree@users.noreply.github.com> Co-authored-by: kartikTAI <129414343+kartikTAI@users.noreply.github.com> Co-authored-by: Kartik Sarangmath <kartik@thirdai.com> Co-authored-by: Sevin F. Varoglu <sfvaroglu@octoml.ai> Co-authored-by: MacanPN <martin.triska@gmail.com> Co-authored-by: Prashanth Rao <35005448+prrao87@users.noreply.github.com> Co-authored-by: Hyeongchan Kim <kozistr@gmail.com> Co-authored-by: sdan <git@sdan.io> Co-authored-by: Guangdong Liu <liugddx@gmail.com> Co-authored-by: Rahul Triptahi <rahul.psit.ec@gmail.com> Co-authored-by: Rahul Tripathi <rauhl.psit.ec@gmail.com> Co-authored-by: pjb157 <84070455+pjb157@users.noreply.github.com> Co-authored-by: Eun Hye Kim <ehkim1440@gmail.com> Co-authored-by: kaijietti <43436010+kaijietti@users.noreply.github.com> Co-authored-by: Pengcheng Liu <pcliu.fd@gmail.com> Co-authored-by: Tomer Cagan <tomer@tomercagan.com> Co-authored-by: Christophe Bornet <cbornet@hotmail.com>
90 lines
2.6 KiB
Plaintext
90 lines
2.6 KiB
Plaintext
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# Installation
|
|
|
|
## Official release
|
|
|
|
To install LangChain run:
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
import CodeBlock from "@theme/CodeBlock";
|
|
|
|
<Tabs>
|
|
<TabItem value="pip" label="Pip" default>
|
|
<CodeBlock language="bash">pip install langchain</CodeBlock>
|
|
</TabItem>
|
|
<TabItem value="conda" label="Conda">
|
|
<CodeBlock language="bash">conda install langchain -c conda-forge</CodeBlock>
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
This will install the bare minimum requirements of LangChain.
|
|
A lot of the value of LangChain comes when integrating it with various model providers, datastores, etc.
|
|
By default, the dependencies needed to do that are NOT installed. You will need to install the dependencies for specific integrations separately.
|
|
|
|
## From source
|
|
|
|
If you want to install from source, you can do so by cloning the repo and be sure that the directory is `PATH/TO/REPO/langchain/libs/langchain` running:
|
|
|
|
```bash
|
|
pip install -e .
|
|
```
|
|
|
|
## LangChain core
|
|
The `langchain-core` package contains base abstractions that the rest of the LangChain ecosystem uses, along with the LangChain Expression Language. It is automatically installed by `langchain`, but can also be used separately. Install with:
|
|
|
|
```bash
|
|
pip install langchain-core
|
|
```
|
|
|
|
## LangChain community
|
|
The `langchain-community` package contains third-party integrations. It is automatically installed by `langchain`, but can also be used separately. Install with:
|
|
|
|
```bash
|
|
pip install langchain-community
|
|
```
|
|
|
|
## LangChain experimental
|
|
The `langchain-experimental` package holds experimental LangChain code, intended for research and experimental uses.
|
|
Install with:
|
|
|
|
```bash
|
|
pip install langchain-experimental
|
|
```
|
|
|
|
## LangGraph
|
|
`langgraph` is a library for building stateful, multi-actor applications with LLMs, built on top of (and intended to be used with) LangChain.
|
|
Install with:
|
|
|
|
```bash
|
|
pip install langgraph
|
|
```
|
|
## LangServe
|
|
LangServe helps developers deploy LangChain runnables and chains as a REST API.
|
|
LangServe is automatically installed by LangChain CLI.
|
|
If not using LangChain CLI, install with:
|
|
|
|
```bash
|
|
pip install "langserve[all]"
|
|
```
|
|
for both client and server dependencies. Or `pip install "langserve[client]"` for client code, and `pip install "langserve[server]"` for server code.
|
|
|
|
## LangChain CLI
|
|
The LangChain CLI is useful for working with LangChain templates and other LangServe projects.
|
|
Install with:
|
|
|
|
```bash
|
|
pip install langchain-cli
|
|
```
|
|
|
|
## LangSmith SDK
|
|
The LangSmith SDK is automatically installed by LangChain.
|
|
If not using LangChain, install with:
|
|
|
|
```bash
|
|
pip install langsmith
|
|
```
|