langchain
Platform Support
| Platform & System | Support |
|---|---|
| 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-configInstall Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
source ~/.cargo/env
rustc --versionIf you see output similar to the following, the installation was successful:

1.2 Install LangChain
python3 -m venv ./langchain_venv
source langchain_venv/bin/activate
pip install langchain -i https://pypi.tuna.tsinghua.edu.cn/simpleUsage
source langchain_venv/bin/activate
python -c "import langchain; print(langchain.__version__)"

