From 44a790c35ad503da445697c4773c8014ac403de0 Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:21:26 -0500 Subject: [PATCH] docs: Swap pip and uv installation instructions in README and install (#5201) docs: Swap pip and uv installation instructions in README and installation guide --- README.md | 12 ++--- .../Get-Started/get-started-installation.md | 44 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 5211af7da..11a7fed6e 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docs/docs/Get-Started/get-started-installation.md b/docs/docs/Get-Started/get-started-installation.md index 35f5bc9c1..08d7f6af5 100644 --- a/docs/docs/Get-Started/get-started-installation.md +++ b/docs/docs/Get-Started/get-started-installation.md @@ -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