Welcome to Firefly
Switch language
Firefly Docsss
Last Updated: 2026-07-22 11:25:16

langchain

Platform Support

Platform & SystemSupport
K1 Buildroot❌ Not supported
K1 OpenHarmony❌ Not supported
K1 Bianbu LXQT/GNOME✅ Supported
K3 Buildroot❌ Not supported
K3 OpenHarmony❌ Not supported
K3 Bianbu LXQT/GNOME✅ Supported

Installation

1.1 Install dependencies

Install the basic dependencies:

sudo apt update
sudo apt install python3-venv libffi-dev libssl-dev pkg-config

Install Rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
source ~/.cargo/env
rustc --version

If you see output similar to the following, the installation was successful: Rust installation output

1.2 Install LangChain

python3 -m venv ./langchain_venv
source langchain_venv/bin/activate
pip install langchain  -i https://pypi.tuna.tsinghua.edu.cn/simple

Usage

source langchain_venv/bin/activate
python -c "import langchain; print(langchain.__version__)"

LangChain demo output

On this page