docs: Swap pip and uv installation instructions in README and install (#5201)

docs: Swap pip and uv installation instructions in README and installation guide
This commit is contained in:
Mendon Kissling
2024-12-11 12:21:26 -05:00
committed by GitHub
parent 67abb679b3
commit 44a790c35a
2 changed files with 28 additions and 28 deletions

View File

@@ -39,18 +39,18 @@
## 📦 Quickstart
- **Install with pip** (Python 3.10 to 3.12):
```shell
pip install langflow
```
- **Install with uv** (Python 3.10 to 3.12):
```shell
uv pip install langflow
```
- **Install with pip** (Python 3.10 to 3.12):
```shell
pip install langflow
```
- **Cloud:** DataStax Langflow is a hosted environment with zero setup. [Sign up for a free account.](https://astra.datastax.com/signup?type=langflow)
- **Self-managed:** Run Langflow in your environment. [Install Langflow](https://docs.langflow.org/get-started-installation) to run a local Langflow server, and then use the [Quickstart](https://docs.langflow.org/get-started-quickstart) guide to create and execute a flow.
- **Hugging Face:** [Clone the space using this link](https://huggingface.co/spaces/Langflow/Langflow?duplicate=true) to create a Langflow workspace.

View File

@@ -8,28 +8,28 @@ You can deploy Langflow either locally or as a hosted service with [**Datastax L
## Install Langflow locally
Install Langflow locally with [pip](https://pypi.org/project/pip/), [uv](https://docs.astral.sh/uv/getting-started/installation/), or [pipx](https://pipx.pypa.io/stable/installation/).
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/).
### Prerequisites
* [Python 3.10 to 3.12](https://www.python.org/downloads/release/python-3100/) installed
* [pip](https://pypi.org/project/pip/), [uv](https://docs.astral.sh/uv/getting-started/installation/), or [pipx](https://pipx.pypa.io/stable/installation/) installed
* Before installing Langflow, we recommend creating a virtual environment to isolate your Python dependencies with [venv](https://docs.python.org/3/library/venv.html), [uv](https://docs.astral.sh/uv/pip/environments), or [conda](https://anaconda.org/anaconda/conda)
* [uv](https://docs.astral.sh/uv/getting-started/installation/), [pip](https://pypi.org/project/pip/), or [pipx](https://pipx.pypa.io/stable/installation/) installed
* Before installing Langflow, we recommend creating a virtual environment to isolate your Python dependencies with [uv](https://docs.astral.sh/uv/pip/environments), [venv](https://docs.python.org/3/library/venv.html), or [conda](https://anaconda.org/anaconda/conda)
### Install Langflow with pip or pipx
Install Langflow with pip:
```bash
python -m pip install langflow
```
Install Langflow with uv:
```bash
uv pip install langflow
```
Install Langflow with pip:
```bash
python -m pip install langflow
```
Install Langflow with pipx using the Python 3.10 executable:
```bash
@@ -38,36 +38,36 @@ pipx install langflow --python python3.10
## Run Langflow
1. To run Langflow, enter the following command.
```bash
python -m langflow run
```
To run Langflow with uv, enter the following command.
1. To run Langflow with uv, enter the following command.
```bash
uv run langflow run
```
2. To run Langflow with pip, enter the following command.
```bash
python -m langflow run
```
2. Confirm that a local Langflow instance starts by visiting `http://127.0.0.1:7860` in a Chromium-based browser.
Now that Langflow is running, follow the [Quickstart](/get-started-quickstart) to create your first flow.
## Manage Langflow versions
To upgrade Langflow to the latest version, use the pip upgrade command.
```bash
python -m pip install langflow -U
```
To upgrade Langflow to the latest version with uv, use the uv pip upgrade command.
```bash
uv pip install langflow -U
```
To upgrade Langflow to the latest version, use the pip upgrade command.
```bash
python -m pip install langflow -U
```
To install a specific version of the Langflow package, add the required version to the command.
```bash