cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Cursor breaks python virtual environments!

Open figi44 opened this issue 1 year ago • 5 comments

If you create a virtual environment when cursor is running it will change the python executables to a symbolic link to cursor. image

Then if you try to run any python command it will just open cursor instead.... This has to be fixed, as it breaks working on python projects.

figi44 avatar Oct 31 '24 05:10 figi44

same problem

JunzheJosephZhu avatar Feb 04 '25 19:02 JunzheJosephZhu

Likewise, same problem

tom-flamelit avatar Apr 09 '25 04:04 tom-flamelit

Same problem. I tried selecting the correct Python virtual environment for the workspace, but it still doesn't work. I tried restarting the app, and it worked, but when I start a new chat, it happens again.

https://forum.cursor.com/t/cursor-virtual-environment-bug/26611

satriaajiputra avatar Apr 25 '25 04:04 satriaajiputra

In addition, it appears to overwrite configs in ~/.local. The project thst generated this issue, now long since moved off the local machine, had some config cruft left over. It'd be nice if the default folders available were limited to the repository.

On Fri, Apr 25, 2025, 12:16 AM Satria Aji Putra @.***> wrote:

satriaajiputra left a comment (getcursor/cursor#2326) https://github.com/getcursor/cursor/issues/2326#issuecomment-2829334088

Same problem. I tried selecting the correct Python virtual environment for the workspace, but it still doesn't work. I tried restarting the app, and it worked, but when I start a new chat, it happens again

— Reply to this email directly, view it on GitHub https://github.com/getcursor/cursor/issues/2326#issuecomment-2829334088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWX2S4S33WMUKSWWZTE6MXD23GZJFAVCNFSM6AAAAABQ5SVXR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRZGMZTIMBYHA . You are receiving this because you commented.Message ID: @.***>

tom-flamelit avatar Apr 25 '25 04:04 tom-flamelit

I think it happens because I'm using zsh. When I use Bash or the default one, it's normal. Hmm. But since I want to use zsh, I tried this trick, and it works: https://github.com/getcursor/cursor/issues/1484#issuecomment-2702842883. Hope they can fix this soon

satriaajiputra avatar Apr 25 '25 14:04 satriaajiputra

I think it happens because I'm using zsh. When I use Bash or the default one, it's normal. Hmm. But since I want to use zsh, I tried this trick, and it works: #1484 (comment). Hope they can fix this soon

well and for a week i was wondering why it is not working, thanks alot, i used bash to make virtual env , then i used zsh and it was picking right pip from virtual env instead of system pip

taukirsheikh avatar May 24 '25 15:05 taukirsheikh