forked from Archives/langchain
985496f4be
Big docs refactor! Motivation is to make it easier for people to find resources they are looking for. To accomplish this, there are now three main sections: - Getting Started: steps for getting started, walking through most core functionality - Modules: these are different modules of functionality that langchain provides. Each part here has a "getting started", "how to", "key concepts" and "reference" section (except in a few select cases where it didnt easily fit). - Use Cases: this is to separate use cases (like summarization, question answering, evaluation, etc) from the modules, and provide a different entry point to the code base. There is also a full reference section, as well as extra resources (glossary, gallery, etc) Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
41 lines
964 B
Markdown
41 lines
964 B
Markdown
# Installation
|
|
|
|
## Official Releases
|
|
|
|
LangChain is available on PyPi, so to it is easily installable with:
|
|
|
|
```
|
|
pip install langchain
|
|
```
|
|
|
|
That 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.
|
|
However, there are two other ways to install LangChain that do bring in those dependencies.
|
|
|
|
To install modules needed for the common LLM providers, run:
|
|
|
|
```
|
|
pip install langchain[llms]
|
|
```
|
|
|
|
To install all modules needed for all integrations, run:
|
|
|
|
```
|
|
pip install langchain[all]
|
|
```
|
|
|
|
Note that if you are using `zsh`, you'll need to quote square brackets when passing them as an argument to a command, for example:
|
|
|
|
```
|
|
pip install 'langchain[all]'
|
|
```
|
|
|
|
## Installing from source
|
|
|
|
If you want to install from source, you can do so by cloning the repo and running:
|
|
|
|
```
|
|
pip install -e .
|
|
```
|