82 lines
3 KiB
Text
82 lines
3 KiB
Text
import ThemedImage from "@theme/ThemedImage";
|
|
import useBaseUrl from "@docusaurus/useBaseUrl";
|
|
import ZoomableImage from "/src/theme/ZoomableImage.js";
|
|
import Admonition from "@theme/Admonition";
|
|
|
|
# 📦 Install Langflow
|
|
|
|
<Admonition type="info">
|
|
Langflow **requires** Python version 3.10 or greater and
|
|
[pip](https://pypi.org/project/pip/) or
|
|
[pipx](https://pipx.pypa.io/stable/installation/) to be installed on your
|
|
system.
|
|
</Admonition>
|
|
|
|
Install Langflow with pip:
|
|
|
|
```bash
|
|
python -m pip install langflow -U
|
|
```
|
|
|
|
Install Langflow with pipx:
|
|
|
|
```bash
|
|
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](/getting-started/possible-installation-issues).
|
|
|
|
To get help in the Langflow CLI:
|
|
|
|
```bash
|
|
python -m langflow --help
|
|
```
|
|
|
|
## ⛓️ Run Langflow
|
|
|
|
1. To run Langflow, 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.
|
|
|
|
<ZoomableImage
|
|
alt="Instructions for duplicating Langflow space on HuggingFace"
|
|
sources={{
|
|
light: "img/welcome-to-langflow.png",
|
|
dark: "img/welcome-to-langflow.png",
|
|
}}
|
|
style={{ width: "80%", maxWidth: "800px", margin: "0 auto" }}
|
|
/>
|
|
|
|
3. Continue on to the [Quickstart](./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](https://huggingface.co/spaces/Langflow/Langflow?duplicate=true). 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.
|
|
|
|
<ZoomableImage
|
|
alt="Instructions for duplicating Langflow space on HuggingFace"
|
|
sources={{
|
|
light: "img/duplicate-space.png",
|
|
dark: "img/duplicate-space.png",
|
|
}}
|
|
style={{ width: "80%", maxWidth: "800px", margin: "0 auto" }}
|
|
/>
|
|
|
|
3. **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.
|
|
|
|
4. **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!
|