Skip to main content

📦 Install Langflow

info

Langflow requires Python version 3.10 or greater and pip or pipx to be installed on your system.

Install Langflow with pip:


_10
python -m pip install langflow -U

Install Langflow with pipx:


_10
pipx install langflow --python python3.10 --fetch-missing-python

Pipx can fetch the missing Python version for you with --fetch-missing-python, but you can also install the Python version manually. Use --force-reinstall to ensure you have the latest version of Langflow and its dependencies.

Having a problem?

If you encounter a problem, see Common Installation Issues.

To get help in the Langflow CLI:


_10
python -m langflow --help

⛓️ Run Langflow

  1. To run Langflow, enter the following command.

_10
python -m langflow run

  1. Confirm that a local Langflow instance starts by visiting http://127.0.0.1:7860 in a Chromium-based browser.
Instructions for duplicating Langflow space on HuggingFaceInstructions for duplicating Langflow space on HuggingFace
  1. Continue on to the Quickstart.

HuggingFace Spaces

HuggingFace provides a great alternative for running Langflow in their Spaces environment. This means you can run Langflow in the cloud without any local installation required. Here's how you can get Langflow up and running on HuggingFace Spaces:

  1. Access Langflow Space: Open a Chromium-based browser and navigate to the Langflow Space. This link directs you to a pre-configured environment for Langflow.

  2. Duplicate the Space: You'll encounter an option to duplicate the Langflow space. This step involves a few simple decisions:

    • Naming Your Space: Assign a unique name to your new Space.
    • Visibility Settings: Choose between Public or Private visibility for your Space.
    • After setting these parameters, click on Duplicate Space to initiate the setup.
Instructions for duplicating Langflow space on HuggingFaceInstructions for duplicating Langflow space on HuggingFace
  1. Complete Installation: The duplication and setup process begins immediately after you click Duplicate Space. Once completed, you will be automatically redirected to the main page of your new Space.

  2. Start Exploring Langflow: With the setup complete, Langflow is now ready for use in your Space and you can start exploring its features and capabilities right away!

Hi, how can I help you?