Describe the Bug
The editor is showing a red squiggly underline for an import statement, reporting an “unresolved import” or “module not found” error. However, the module is correctly installed in the selected Python interpreter, and the code runs perfectly without any ModuleNotFoundError in the integrated terminal or Jupyter kernel.
Steps to Reproduce
Create a new Python virtual environment (python -m venv .venv).
Activate the environment (source .venv/bin/activate).
Install a package (e.g., pip install scipy).
Ensure the editor (Cursor/VS Code) is using the interpreter from this virtual environment (.venv/bin/python).
Create a new Python file (e.g., main.py).
Type the import statement: from scipy.spatial import ckDTree
.
Expected Behavior
No error or red underline should appear for the from scipy.spatial import ckDTree
statement, as the module is installed in the selected interpreter.
Screenshots / Screen Recordings
Operating System
MacOS
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.2.0
VSCode Version: 1.99.3
Commit: eb5fa4768da0747b79dc34f0b79ab20dbf582020
Date: 2025-07-01T19:49:10.821Z (15 hrs ago)
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
Does this stop you from using Cursor
No - Cursor works, but with this issue