I cannot select my venv python interpreter

I cannot select my python interpreter in the virtual environment in my project. I try to copy the absolute path to .venv/bin/python and I get

An Invalid Python interpreter is selected, please try changing it to enable features such as IntelliSense, linting, and debugging. See output for more details regarding why the interpreter is invalid.

If I hop over to VS code it works 100% fine.

I am working on a Mac.

I tried reinstalling all python extensions and restarting Cursor.

3 Likes

+1, facing the same issue right now on Mac

1 Like

same issue

Same Issue

Same here.

And it’s stupid that terminal interpreter/project interpreter/Cursor Agent interpreter don’t change together to make sure consistency

1 Like

Here’s how I fixed it:

  1. I went to the Command Palette (Cmd+Shift+P) and selected Python: Select Interpreter .

  2. I chose the “Enter interpreter path…” option.

  3. I navigated to my project folder, then to the venv folder (or .venv), then to the bin subfolder, and selected the file named python or python3.

  • Example path:
/path/to/your/project/venv/bin/python

  1. After selecting that file, Cursor correctly recognized the virtual environment, and all features like Intellisense, linting, and debugging were enabled.

I hope this helps someone else with the same problem!