Install & Compatibility
Where this runs
tested against v0.0.37 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.114s · 90.4MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 9.2s · import 0.103s · 99MB
94MB installed
● package 94MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
langchain_cli
✓ import langchain_cli
✗ import langchaincli
The package name has an underscore, not a hyphen.
langchain_cli.cli
✓ from langchain_cli.cli import app
✗ from langchain.cli import app
The main module is under langchain_cli, not langchain.
Test CLI invocation programmatically. Shows the installed version.
import langchain_cli
from langchain_cli.cli import app
from typer.testing import CliRunner
runner = CliRunner()
result = runner.invoke(app, ["--version"])
print(result.output.strip())
langchain --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'langchain_cli'
Package not installed or installed under different name (langchain-cli vs langchain_cli).
fixRun `pip install langchain-cli` and import using `import langchain_cli`.
Error: No such command 'serve'
The `serve` command was renamed to `run` in v0.0.30+.
fixUse `langchain-cli run` instead of `langchain-cli serve`.
Usage: langchain-cli [OPTIONS] COMMAND [ARGS]...
Try 'langchain-cli --help' for help.
Error: Missing argument 'COMMAND'.
Running `langchain-cli` without any subcommand.
fixProvide a valid subcommand like `new`, `run`, or `--help`.
Upgrade
Version history
0.0.37latest on PyPI · released Aug 30, 2025
Audit
Dependencies
No dependency data recorded yet.