Docs: recommend uv (#5237)

* docs: add troubleshooting section for Langflow installation issues

* docs: update installation instructions to recommend uv for local setup

* docs: update installation instructions to emphasize uv as the recommended method

* Update docs/docs/Get-Started/get-started-installation.md

Co-authored-by: Madhavan <msmygit@users.noreply.github.com>

---------

Co-authored-by: Madhavan <msmygit@users.noreply.github.com>
This commit is contained in:
Mendon Kissling 2024-12-12 14:01:16 -05:00 • committed by GitHub
commit 973ca8c780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 2 deletions

View file

@ -40,7 +40,7 @@
## 📦 Quickstart ## 📦 Quickstart
- **Install with uv** (Python 3.10 to 3.12): - **Install with uv (recommended)** (Python 3.10 to 3.12):
```shell ```shell
uv pip install langflow uv pip install langflow

View file

@ -8,7 +8,7 @@ You can deploy Langflow either locally or as a hosted service with [**Datastax L
## Install Langflow locally ## Install Langflow locally
Install Langflow locally with [uv](https://docs.astral.sh/uv/getting-started/installation/), [pip](https://pypi.org/project/pip/), or [pipx](https://pipx.pypa.io/stable/installation/). Install Langflow locally with [uv (recommended)](https://docs.astral.sh/uv/getting-started/installation/), [pip](https://pypi.org/project/pip/), or [pipx](https://pipx.pypa.io/stable/installation/).
### Prerequisites ### Prerequisites
@ -128,6 +128,22 @@ This error can occur during Langflow upgrades when the new version can't overrid
If you wish to retain your files, back them up before clearing the folder. If you wish to retain your files, back them up before clearing the folder.
### Langflow installation freezes at pip dependency resolution
Installing Langflow with `pip install langflow` slowly fails with this error message:
```plain
pip is looking at multiple versions of <<library>> to determine which version is compatible with other requirements. This could take a while.
```
To work around this issue, install Langflow with [`uv`](https://docs.astral.sh/uv/getting-started/installation/) instead of `pip`.
```plain
uv pip install langflow
```
To run Langflow with uv:
```plain
uv run langflow run
```