# Just installed, my project is in Python and I'm getting ModuleNotFoundError

**URL:** <https://forum.cursor.com/t/just-installed-my-project-is-in-python-and-im-getting-modulenotfounderror/15775>\
**Category:** Bug Reports\
**Created:** [September 9, 2024, 5:38pm UTC](https://forum.cursor.com/t/just-installed-my-project-is-in-python-and-im-getting-modulenotfounderror/15775 "2024-09-09T17:38:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![runixo](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@runixo](https://forum.cursor.com/u/runixo)\
**Post date:** [September 9, 2024, 5:38pm UTC](https://forum.cursor.com/t/just-installed-my-project-is-in-python-and-im-getting-modulenotfounderror/15775/1 "2024-09-09T17:38:37Z")

</div>

I’ve just installed Cursor but I cannot run anything on the terminal because the python modules don’t seem to be installed:

```auto
(env) ➜ new-deal git:(main) ✗ which python
/home/martin/proj/foreclosures/env/bin/python
(env) ➜ new-deal git:(main) ✗ which pip     
/home/martin/proj/foreclosures/env/bin/pip
(env) ➜ new-deal git:(main) ✗ pip install flask
Requirement already satisfied: flask in /home/martin/proj/foreclosures/env/lib/python3.11/site-packages (2.3.2)
Requirement already satisfied: Werkzeug>=2.3.3 in /home/martin/proj/foreclosures/env/lib/python3.11/site-packages (from flask) (3.0.3)
Requirement already satisfied: Jinja2>=3.1.2 in /home/martin/proj/foreclosures/env/lib/python3.11/site-packages (from flask) (3.1.4)
Requirement already satisfied: itsdangerous>=2.1.2 in /home/martin/proj/foreclosures/env/lib/python3.11/site-packages (from flask) (2.2.0)
Requirement already satisfied: click>=8.1.3 in /home/martin/proj/foreclosures/env/lib/python3.11/site-packages (from flask) (8.1.7)
Requirement already satisfied: blinker>=1.6.2 in /home/martin/proj/foreclosures/env/lib/python3.11/site-packages (from flask) (1.8.2)
Requirement already satisfied: MarkupSafe>=2.0 in /home/martin/proj/foreclosures/env/lib/python3.11/site-packages (from Jinja2>=3.1.2->flask) (2.1.5)
(env) ➜ new-deal git:(main) ✗ python main.py 
Traceback (most recent call last):
  File "/home/martin/proj/foreclosures/pipedrive/new-deal/main.py", line 2, in <module>
    from flask import Flask, request, jsonify
ModuleNotFoundError: No module named 'flask'

```

I found this person who seems to be experiencing the same: [[Linux] Cannot use python scripts both in cursor IDE and Cursor Terminal : working command in system terminal does not work in cursor terminal, executable "sys.executable: /opt/cursor.appimage" replaces selected Python executable and blocks module imports · Issue #1484 · getcursor/cursor · GitHub](https://github.com/getcursor/cursor/issues/1484)

Thanks

---

<div class="post-metadata">

**Author:** ![johbub](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/johbub/32/8890_2.png) [@johbub](https://forum.cursor.com/u/johbub)\
**Post date:** [October 17, 2024, 5:06pm UTC](https://forum.cursor.com/t/just-installed-my-project-is-in-python-and-im-getting-modulenotfounderror/15775/2 "2024-10-17T17:06:58Z")

</div>

Same here

---

<div class="post-metadata">

**Author:** ![Magnum](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Magnum](https://forum.cursor.com/u/Magnum)\
**Post date:** [February 4, 2025, 5:14pm UTC](https://forum.cursor.com/t/just-installed-my-project-is-in-python-and-im-getting-modulenotfounderror/15775/3 "2025-02-04T17:14:11Z")

</div>

I have the same issue. Opened my project in Cursor, when I try to run it:

```auto
.venv mho@tuxedo: ~/Projects/dns-admin/src$ python manage.py runserver
Traceback (most recent call last):
  File "/home/mho/Projects/dns-admin/src/manage.py", line 11, in main
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/mho/Projects/dns-admin/src/manage.py", line 22, in <module>
    main()
    ~~~~ ^^
  File "/home/mho/Projects/dns-admin/src/manage.py", line 13, in main
    raise ImportError(
    ...<3 lines>...
    ) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
.venv ✘ mho@tuxedo: ~/Projects/dns-admin/src$ pip list | grep Django
Django 4.2.18
.venv mho@tuxedo: ~/Projects/dns-admin/src$ pip install Django
Requirement already satisfied: Django in /home/mho/Projects/dns-admin/.venv/lib64/python3.13/site-packages (4.2.18)
Requirement already satisfied: asgiref<4,>=3.6.0 in /home/mho/Projects/dns-admin/.venv/lib64/python3.13/site-packages (from Django) (3.8.1)
Requirement already satisfied: sqlparse>=0.3.1 in /home/mho/Projects/dns-admin/.venv/lib64/python3.13/site-packages (from Django) (0.5.3)

```

I have no problems running it in VS Code.  
Tried recreating the VENV in Cursor, no difference.

Could this be a Linux thing? Does running Cursor as an AppImage mess up some Python stuff?

---

<div class="post-metadata">

**Author:** ![Magnum](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Magnum](https://forum.cursor.com/u/Magnum)\
**Post date:** [February 4, 2025, 6:22pm UTC](https://forum.cursor.com/t/just-installed-my-project-is-in-python-and-im-getting-modulenotfounderror/15775/4 "2025-02-04T18:22:58Z")

</div>

I tested some more. It seems to be an issue with zsh. If I change the terminal to bash, it works fine.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [December 21, 2025, 8:57am UTC](https://forum.cursor.com/t/just-installed-my-project-is-in-python-and-im-getting-modulenotfounderror/15775/5 "2025-12-21T08:57:58Z")

</div>

Closed on December 21, 2025, 8:57am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
