Cannot run Python/pip in terminal after venv activation, random files opens in editor instead

Describe the Bug

When I try to run Python or Pip commands through the integrated terminal, instead of running the command Cursor opens some files in editor

Steps to Reproduce

  1. Open Cursor
  2. Open Terminal → New Terminal (zsh)
  3. Run python3.7 -m virtualenv venv
  4. Run . venv/bin/activate
  5. Run pip install --upgrade pip

Expected Behavior

The pip inside the venv should run and update pip

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.6
VSCode Version: 1.96.2
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850
Date: 2025-06-25T02:13:33.781Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 5.15.0-88-generic

Additional Information

Once the venv was activated, nothing Python-related seems to work

Does this stop you from using Cursor

No - Cursor works, but with this issue