When using Cursor on a python project with simple uv setup and a .venv environment the terminal seems to be overriding my python interpreter in a very bizarre way.
I can see that the interpret is set to .venv/bin/python
, and when I type which python
in the terminal I get the same location. However executing python -c "import sys; print(sys.executable)" gives
$HOME/Applications/Cursor.AppImage`, and indeed the modules that were installed in my environment are not accessible anymore in this python interpreter.
I can change that by using uv run
but this still affects other functionalities including debugging and notebooks.
This is on Cursor 0.48.7 on Ubuntu 22.04.