Environment:
- macOS 15.2 (24C101)
- pyenv 2.5.5-2-gee40ad22
- zsh 5.9 (arm64-apple-darwin24.0)
- cursor 0.49.6 0781e81[…] arm64
Issue:
When using pyenv global 3.13.3
, Cursor’s terminal shows Python 3.11.5
instead. The same command works correctly in both macOS Terminal and VS Code.
Examining the PATH in Cursor’s terminal shows:
- Multiple duplicate entries for
.pyenv/shims
- The specific Python version (3.11.5) appears multiple times
- The pyenv shims are not properly prioritized in the PATH
Related:
- New python environment issue in 0.45.15
- Discovering Python Interpreters stucks forever
- Cursor cannot detect different venvs based on directory
- Python extension not working
- also posted on GitHub
Workarounds: