Skip to main content

How to See Which LangChain Packages Are Installed with langchain_core.sys_info

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

When a LangChain project misbehaves, the first thing to know is which versions it runs. LangChain has a command for that, python -m langchain_core.sys_info, which prints a report of your system and the LangChain packages in your project. This guide runs it in a fresh project and reads the report section by section.

Syntax​

Syntax
uv run python -m langchain_core.sys_info
PartWhat it means
uv runRuns the command inside your project, with the packages you installed there
python -mRuns a Python module by its name
langchain_core.sys_infoThe module that prints the report: sys_info, inside the langchain_core package. It's written with an underscore, the way Python names modules

The command takes no arguments and needs no API key. LangChain's reference describes the function behind it, print_sys_info, in one line: Print information about the environment for debugging purposes.

The Example​

A fresh project with two packages: langchain, and langchain-anthropic, which connects LangChain to Claude. The report only reads what's installed, so it works before you write any code.

Prerequisites​

  • uv. This guide uses uv 0.13.10 with Python 3.14.10.

Step 1: Create the Project​

In a terminal, in the folder where you keep your projects, create a project, move into it and add the two packages:

Terminal
uv init --python 3.14 --no-package package-versions
cd package-versions
uv add langchain langchain-anthropic
Output (shortened)
Initialized project `package-versions` at `/Users/you/source/package-versions`
Using CPython 3.14.10
Creating virtual environment at: .venv
Resolved 46 packages in 9ms
Installed 44 packages in 142ms
+ langchain==1.5.2
+ langchain-anthropic==1.7.13

uv init creates the project, and --no-package makes it a plain project with main.py at the top. uv add installed 44 packages: the two you asked for, and the packages they depend on. The shortened output keeps those two, and the report in the next step sorts out the rest.

Step 2: Print the Report​

Run the command from the project folder:

Terminal
uv run python -m langchain_core.sys_info
Output
System Information
------------------
> OS: Darwin
> OS Version: Darwin Kernel Version 25.6.0: Tue Nov 17 21:25:35 PST 2026; root:xnu-12377.161.15.702.20~2/RELEASE_ARM64_T6000
> Python Version: 3.14.10 (main, Nov 11 2026, 00:14:32) [Clang 23.1.3 ]

Package Information
-------------------
> langchain_core: 1.8.5
> langchain: 1.5.2
> langsmith: 0.16.4
> langchain_anthropic: 1.7.13
> langchain_protocol: 0.0.22
> langgraph_sdk: 0.4.14

Optional packages not installed
-------------------------------
> deepagents
> deepagents-cli

Other Dependencies
------------------
> anthropic: 2.16.0
> anyio: 4.16.0
> certifi: 2026.11.20
> distro: 1.9.0
> httpx: 0.29.0
> httpx2: 2.17.0
> jsonpatch: 1.48
> langgraph: 1.2.25
> opentelemetry-api: 1.45.3
> orjson: 3.13.0
> packaging: 26.4
> pydantic: 2.14.4
> pyyaml: 6.0.4
> requests: 2.34.2
> requests-toolbelt: 1.0.0
> sniffio: 1.3.1
> tenacity: 9.2.1
> typing-extensions: 4.16.0
> uuid-utils: 0.20.0
> websockets: 17.4
> xxhash: 4.1.0
> zstandard: 0.25.0

The terminal after uv run python -m langchain_core.sys_info: a System Information section with Darwin and Python 3.14.10, Package Information listing langchain_core 1.8.5, langchain 1.5.2, langsmith 0.16.4, langchain_anthropic 1.7.13, langchain_protocol 0.0.22 and langgraph_sdk 0.4.14, deepagents and deepagents-cli under Optional packages not installed, and a list of Other Dependencies that includes anthropic 2.16.0 and langgraph 1.2.25.

The report has four sections:

  • System Information is your operating system and the Python that runs the project. Darwin is the name Python uses for macOS, and the project runs Python 3.14.10.
  • Package Information lists the LangChain packages the report found in the project, with their versions. langchain_core, langchain and langsmith always come first, and the rest follow in alphabetical order. langchain 1.5.2 and langchain_anthropic 1.7.13 are the two you added. The other four came with them, as packages they depend on.
  • Optional packages not installed names LangChain packages that the report always looks for and that this project doesn't have: deepagents and deepagents-cli. Nothing is wrong. The project just doesn't use them.
  • Other Dependencies lists the packages that the packages above depend on, with their versions. That's where langgraph 1.2.25 appears, because langchain depends on it. So does anthropic 2.16.0, Anthropic's Python SDK, which langchain-anthropic depends on.

Common Mistakes​

MistakeWhat happensDo this instead
Leaving out uv run: python3 -m langchain_core.sys_info/Library/Frameworks/Python.framework/Versions/3.15/bin/python3: Error while finding module specification for 'langchain_core.sys_info' (ModuleNotFoundError: No module named 'langchain_core'), even inside the project folder. python3 is the Python installed on the computer, and it doesn't have the project's packagesRun it through the project: uv run python -m langchain_core.sys_info
Writing the package's name with a hyphen: uv run python -m langchain-core.sys_info/Users/you/source/package-versions/.venv/bin/python: Error while finding module specification for 'langchain-core.sys_info' (ModuleNotFoundError: No module named 'langchain-core')Use the module's name, with an underscore: langchain_core.sys_info

FAQ​

Where do I paste the report?​

Into the System Info field of a bug report. LangChain's bug report form asks: Please share your system info with us. Run the following command in your terminal and paste the output here: python -m langchain_core.sys_info. LangGraph's bug report form asks for the same command.

Does the report send anything over the internet?​

No. It reads your system details and the versions of the installed packages, and prints them. It holds no file paths or user names, only the kind of details you see in Step 2.

Can I print the report from Python code?​

Yes. LangChain's bug report form gives this for a Python session that's already running:

Python
from langchain_core import sys_info
sys_info.print_sys_info()

In this guide's project, uv run python -c "from langchain_core import sys_info; sys_info.print_sys_info()" printed exactly the report from Step 2.

Why do some names have underscores and others hyphens?​

Package Information lists module names, the names you use in Python code, such as langchain_anthropic. Other Dependencies lists names the way the packages state their requirements, which are the names you give uv add, such as typing-extensions.

Conclusion​

uv run python -m langchain_core.sys_info printed a report of the system and the project's packages: langchain 1.5.2, langchain_anthropic 1.7.13 and langchain_core 1.8.5 under Package Information, and langgraph 1.2.25 and anthropic 2.16.0 under Other Dependencies. It needs no code and no API key, so it's the first thing to run when you check a project's versions or file a bug.

Additional Resources​

  • print_sys_info — LangChain's reference for the function behind the command.
  • The -m option — how Python runs a module by its name.
  • uv run — every option of the command that runs things inside a uv project.