ModuleNotFoundError: No module named 'langgraph' #498

Closed
opened 2026-02-20 17:40:24 -05:00 by yindo · 8 comments
Owner

Originally created by @adithya04dev on GitHub (Mar 6, 2025).

Checked other resources

  • This is a bug, not a usage question. For questions, please use GitHub Discussions.
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

from langgraph.graph import END, StateGraph,START

Error Message and Stack Trace (if applicable)

File "C:\Users\adith\Documents\Projects\python-projects\csql-agent\agents\sql_with_preprocess\main.py", line 2, in <module>
    from langgraph.graph import END, StateGraph,START
ModuleNotFoundError: No module named 'langgraph'

Description

i tried pip show langgraph
Name: langgraph
Version: 0.3.5
Summary: Building stateful, multi-actor applications with LLMs
Home-page: https://www.github.com/langchain-ai/langgraph
Author:
Author-email:
License: MIT
Location: C:\Users\adith\Documents\Projects\python-projects\csql-agent\venv\Lib\site-packages
Requires: langchain-core, langgraph-checkpoint, langgraph-prebuilt, langgraph-sdk
Required-by:..!
how to solve it?

System Info

System Information

OS: Windows
OS Version: 10.0.22631
Python Version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]

Package Information

langchain_core: 0.3.41
langchain: 0.3.20
langchain_community: 0.3.19
langsmith: 0.3.11
langchain_google_genai: 2.0.11
langchain_groq: 0.2.4
langchain_mistralai: 0.2.7
langchain_openai: 0.3.7
langchain_text_splitters: 0.3.6
langgraph_sdk: 0.1.53

Optional packages not installed

langserve

Other Dependencies

aiohttp<4.0.0,>=3.8.3: Installed. No version info available.
async-timeout<5.0.0,>=4.0.0;: Installed. No version info available.
dataclasses-json<0.7,>=0.5.7: Installed. No version info available.
filetype: 1.2.0
google-ai-generativelanguage: 0.6.16
groq: 0.18.0
httpx: 0.28.1
httpx-sse<1,>=0.3.1: Installed. No version info available.
httpx-sse<1.0.0,>=0.4.0: Installed. No version info available.
httpx<1,>=0.25.2: Installed. No version info available.
jsonpatch<2.0,>=1.33: Installed. No version info available.
langchain-anthropic;: Installed. No version info available.
langchain-aws;: Installed. No version info available.
langchain-cohere;: Installed. No version info available.
langchain-community;: Installed. No version info available.
langchain-core<1.0.0,>=0.3.34: Installed. No version info available.
langchain-core<1.0.0,>=0.3.37: Installed. No version info available.
langchain-core<1.0.0,>=0.3.39: Installed. No version info available.
langchain-core<1.0.0,>=0.3.41: Installed. No version info available.
langchain-deepseek;: Installed. No version info available.
langchain-fireworks;: Installed. No version info available.
langchain-google-genai;: Installed. No version info available.
langchain-google-vertexai;: Installed. No version info available.
langchain-groq;: Installed. No version info available.
langchain-huggingface;: Installed. No version info available.
langchain-mistralai;: Installed. No version info available.
langchain-ollama;: Installed. No version info available.
langchain-openai;: Installed. No version info available.
langchain-text-splitters<1.0.0,>=0.3.6: Installed. No version info available.
langchain-together;: Installed. No version info available.
langchain-xai;: Installed. No version info available.
langchain<1.0.0,>=0.3.20: Installed. No version info available.
langsmith-pyo3: Installed. No version info available.
langsmith<0.4,>=0.1.125: Installed. No version info available.
langsmith<0.4,>=0.1.17: Installed. No version info available.
numpy<3,>=1.26.2: Installed. No version info available.
openai<2.0.0,>=1.58.1: Installed. No version info available.
orjson: 3.10.15
packaging: 24.2
packaging<25,>=23.2: Installed. No version info available.
pydantic: 2.10.6
pydantic-settings<3.0.0,>=2.4.0: Installed. No version info available.
pydantic<3,>=2: Installed. No version info available.
pydantic<3.0.0,>=2.5.2;: Installed. No version info available.
pydantic<3.0.0,>=2.7.4: Installed. No version info available.
pydantic<3.0.0,>=2.7.4;: Installed. No version info available.
pytest: Installed. No version info available.
PyYAML>=5.3: Installed. No version info available.
requests: 2.32.3
requests-toolbelt: 1.0.0
requests<3,>=2: Installed. No version info available.
rich: 13.9.4
SQLAlchemy<3,>=1.4: Installed. No version info available.
tenacity!=8.4.0,<10,>=8.1.0: Installed. No version info available.
tenacity!=8.4.0,<10.0.0,>=8.1.0: Installed. No version info available.
tiktoken<1,>=0.7: Installed. No version info available.
tokenizers<1,>=0.15.1: Installed. No version info available.
typing-extensions>=4.7: Installed. No version info available.
zstandard: 0.23.0

Originally created by @adithya04dev on GitHub (Mar 6, 2025). ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use GitHub Discussions. - [x] I added a clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python from langgraph.graph import END, StateGraph,START ``` ### Error Message and Stack Trace (if applicable) ```shell File "C:\Users\adith\Documents\Projects\python-projects\csql-agent\agents\sql_with_preprocess\main.py", line 2, in <module> from langgraph.graph import END, StateGraph,START ModuleNotFoundError: No module named 'langgraph' ``` ### Description i tried pip show langgraph Name: langgraph Version: 0.3.5 Summary: Building stateful, multi-actor applications with LLMs Home-page: https://www.github.com/langchain-ai/langgraph Author: Author-email: License: MIT Location: C:\Users\adith\Documents\Projects\python-projects\csql-agent\venv\Lib\site-packages Requires: langchain-core, langgraph-checkpoint, langgraph-prebuilt, langgraph-sdk Required-by:..! how to solve it? ### System Info System Information ------------------ > OS: Windows > OS Version: 10.0.22631 > Python Version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)] Package Information ------------------- > langchain_core: 0.3.41 > langchain: 0.3.20 > langchain_community: 0.3.19 > langsmith: 0.3.11 > langchain_google_genai: 2.0.11 > langchain_groq: 0.2.4 > langchain_mistralai: 0.2.7 > langchain_openai: 0.3.7 > langchain_text_splitters: 0.3.6 > langgraph_sdk: 0.1.53 Optional packages not installed ------------------------------- > langserve Other Dependencies ------------------ > aiohttp<4.0.0,>=3.8.3: Installed. No version info available. > async-timeout<5.0.0,>=4.0.0;: Installed. No version info available. > dataclasses-json<0.7,>=0.5.7: Installed. No version info available. > filetype: 1.2.0 > google-ai-generativelanguage: 0.6.16 > groq: 0.18.0 > httpx: 0.28.1 > httpx-sse<1,>=0.3.1: Installed. No version info available. > httpx-sse<1.0.0,>=0.4.0: Installed. No version info available. > httpx<1,>=0.25.2: Installed. No version info available. > jsonpatch<2.0,>=1.33: Installed. No version info available. > langchain-anthropic;: Installed. No version info available. > langchain-aws;: Installed. No version info available. > langchain-cohere;: Installed. No version info available. > langchain-community;: Installed. No version info available. > langchain-core<1.0.0,>=0.3.34: Installed. No version info available. > langchain-core<1.0.0,>=0.3.37: Installed. No version info available. > langchain-core<1.0.0,>=0.3.39: Installed. No version info available. > langchain-core<1.0.0,>=0.3.41: Installed. No version info available. > langchain-deepseek;: Installed. No version info available. > langchain-fireworks;: Installed. No version info available. > langchain-google-genai;: Installed. No version info available. > langchain-google-vertexai;: Installed. No version info available. > langchain-groq;: Installed. No version info available. > langchain-huggingface;: Installed. No version info available. > langchain-mistralai;: Installed. No version info available. > langchain-ollama;: Installed. No version info available. > langchain-openai;: Installed. No version info available. > langchain-text-splitters<1.0.0,>=0.3.6: Installed. No version info available. > langchain-together;: Installed. No version info available. > langchain-xai;: Installed. No version info available. > langchain<1.0.0,>=0.3.20: Installed. No version info available. > langsmith-pyo3: Installed. No version info available. > langsmith<0.4,>=0.1.125: Installed. No version info available. > langsmith<0.4,>=0.1.17: Installed. No version info available. > numpy<3,>=1.26.2: Installed. No version info available. > openai<2.0.0,>=1.58.1: Installed. No version info available. > orjson: 3.10.15 > packaging: 24.2 > packaging<25,>=23.2: Installed. No version info available. > pydantic: 2.10.6 > pydantic-settings<3.0.0,>=2.4.0: Installed. No version info available. > pydantic<3,>=2: Installed. No version info available. > pydantic<3.0.0,>=2.5.2;: Installed. No version info available. > pydantic<3.0.0,>=2.7.4: Installed. No version info available. > pydantic<3.0.0,>=2.7.4;: Installed. No version info available. > pytest: Installed. No version info available. > PyYAML>=5.3: Installed. No version info available. > requests: 2.32.3 > requests-toolbelt: 1.0.0 > requests<3,>=2: Installed. No version info available. > rich: 13.9.4 > SQLAlchemy<3,>=1.4: Installed. No version info available. > tenacity!=8.4.0,<10,>=8.1.0: Installed. No version info available. > tenacity!=8.4.0,<10.0.0,>=8.1.0: Installed. No version info available. > tiktoken<1,>=0.7: Installed. No version info available. > tokenizers<1,>=0.15.1: Installed. No version info available. > typing-extensions>=4.7: Installed. No version info available. > zstandard: 0.23.0
yindo closed this issue 2026-02-20 17:40:24 -05:00
Author
Owner

@vbarda commented on GitHub (Mar 6, 2025):

i would recommend creating a fresh venv and reinstalling it

@vbarda commented on GitHub (Mar 6, 2025): i would recommend creating a fresh venv and reinstalling it
Author
Owner

@adithya04dev commented on GitHub (Mar 6, 2025):

tried 3 times (due to this issue https://github.com/langchain-ai/langgraph/issues/3631)!
still not working.

@adithya04dev commented on GitHub (Mar 6, 2025): tried 3 times (due to this issue https://github.com/langchain-ai/langgraph/issues/3631)! still not working.
Author
Owner

@vbarda commented on GitHub (Mar 6, 2025):

@adithya04dev just to confirm, i am assuming you're running the script that is erroring from the same venv? if so, i am not sure what would be the reason, but it just means your script somehow doesn't see your venv

@vbarda commented on GitHub (Mar 6, 2025): @adithya04dev just to confirm, i am assuming you're running the script that is erroring from the same venv? if so, i am not sure what would be the reason, but it just means your script somehow doesn't see your venv
Author
Owner

@vbarda commented on GitHub (Mar 6, 2025):

I am going to close because this is not a langgraph issue

@vbarda commented on GitHub (Mar 6, 2025): I am going to close because this is not a langgraph issue
Author
Owner

@adithya04dev commented on GitHub (Mar 7, 2025):

i am running in the same venv..
wtf do u introduce so many breaking changes to your library!

@adithya04dev commented on GitHub (Mar 7, 2025): i am running in the same venv.. wtf do u introduce so many breaking changes to your library!
Author
Owner

@adithya04dev commented on GitHub (Mar 7, 2025):

@adithya04dev just to confirm, i am assuming you're running the script that is erroring from the same venv? if so, i am not sure what would be the reason, but it just means your script somehow doesn't see your venv

yeah u were correct ..fastapi wasnt installed thats why it was using global path(env)!

@adithya04dev commented on GitHub (Mar 7, 2025): > [@adithya04dev](https://github.com/adithya04dev) just to confirm, i am assuming you're running the script that is erroring from the same venv? if so, i am not sure what would be the reason, but it just means your script somehow doesn't see your venv yeah u were correct ..fastapi wasnt installed thats why it was using global path(env)!
Author
Owner

@hinthornw commented on GitHub (Mar 7, 2025):

@adithya04dev, we all face coding frustrations. Remember that open source projects are built by real people dedicating their work so you can use free things. A moment of patience usually leads to better solutions and conversations.

How you interact with maintainers today shapes the community and support you'll have tomorrow.

@hinthornw commented on GitHub (Mar 7, 2025): @adithya04dev, we all face coding frustrations. Remember that open source projects are built by real people dedicating their work so you can use free things. A moment of patience usually leads to better solutions and conversations. How you interact with maintainers today shapes the community and support you'll have tomorrow.
Author
Owner

@Crispae commented on GitHub (Oct 23, 2025):

one more when you use venv is to install package using python -m pip install langgraph to resolve package location installation issue

@Crispae commented on GitHub (Oct 23, 2025): one more when you use `venv` is to install package using `python -m pip install langgraph` to resolve package location installation issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#498