Are LangChain package versions Python-version specific?

I’m trying to understand whether LangChain and its related packages (such as langchain-community) are tied to specific Python versions, or if they are generally intended to be Python-version agnostic.

Are there recommended LangChain versions for Python 3.10, 3.11, 3.12, or newer?

I’m asking because I’ve noticed conflicting or strict dependency requirements in some releases. For example:

langchain-community==1.0.0a1
depends on requests>=2.32.5,<3.0.0

@Najiya For Python 3.10, 3.11, 3.12, or newer, just use the latest version for almost all of the langchain packages including langchain-community

1 Like

Okay, but I wanted to know if it is specified anywhere. For eg, when I tried to install deepagents, I found that it does not support python 3.10 but only from python 3.11 and above

hi @Najiya

here you can fint what version of python is required (e.g. deepagents) deepagents/libs/deepagents/pyproject.toml at main · langchain-ai/deepagents · GitHub

Why?
On python 3.10, typing.NotRequired or typing.Unpack are not available in the stdlib typing module (you’d need typing_extensions)

1 Like

@Najiya You can see the supported Python version by going to PyPi itself. For example, for Langchain: langchain · PyPI or deepagents: deepagents · PyPI

1 Like

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.