Are LangChain package versions Python-version specific?

Hi @Najiya ,

LangChain packages are not fully Python-version agnostic. Each package specifies its supported Python versions.

Where to Check

You can verify compatibility in:

  1. PyPI page → Look at “Requires: Python >= X.Y”

  2. pyproject.toml → Check requires-python


What’s Happening in Your Case

  • Most core packages like langchain, langchain-community, etc. support Python 3.10+

  • Some newer packages (like deepagents) require Python 3.11+

Why?

Python 3.11 includes newer typing features like:

  • typing.NotRequired

  • typing.Unpack

These are not available in Python 3.10’s standard library (unless using typing_extensions), so some newer repos set requires-python >= 3.11.


Recommendation

  • If starting fresh → use Python 3.11 or 3.12

  • If stuck on 3.10 → check each package’s PyPI page before installing

There isn’t one global LangChain ↔ Python version mapping — it’s package-specific.

So always check the package’s Requires-Python field.