System: Ubuntu 24.04
Python: 3.12 (installed with APT)
Editor: Cursor
Shell: bash
Desktop environment: GNOME (default Ubuntu)
What’s happening
When I run this command in the terminal or inside Cursor:
python3 -m venv venv
instead of just creating the virtual environment in the current terminal, it opens a new window (like a new terminal or cursor window). That’s not normal behavior.
What I already tried
python3-pip, python3-venv, and python3.12-distutils are already installed.
No alias for python3 (alias python3 returns nothing).
python3 -c "print('hi')" works fine — no new window.
Tried python3 -m venv venv --without-pip → same result.
What could be wrong?
Maybe Cursor is handling the venv command in a weird way? Or maybe Ubuntu’s sandboxing or something like Snap is causing this?
My question
Has anyone seen this before?
Why would python3 -m venv open a new window instead of just running like any normal Python command?
Any tips or things I can check?
Thanks in advance!