-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: cannot deactivate environments in Terminal #3043
Comments
Could you please share more about your environment management setup? Specifically, what's executed in your bashrc/zshrc and corresponding _profile files? What happens if you repeat this in VSCode (ensuring the same |
In VSCode, with In VSCode:
In Positron:
Do note that neither of these are really doing what I want them to; I suppose my largest issues here are
Related upstream discussions:
With pyenv AND conda installed, I do have a bit of a mess in these files. I've pulled out the pyenv + conda pieces for the following files:
|
Also ran into this: Not sure if this is same, but I have observed this behavior, where it looks like you are in a venv, but unable to deactivate. # initial load of a new zsh shell
# ------
(.venv)
~/demo-video [🐍pyenv 3.12.0 (.venv)][2024-18-06 8:56AM]
❯ which python
/Users/thomasmock/demo-video/.venv/bin/python
(.venv)
~/demo-video [🐍pyenv 3.12.0 (.venv)][2024-18-06 8:56AM]
❯ deactivate
zsh: permission denied: deactivate
(.venv)
~/demo-video [🐍pyenv 3.12.0 (.venv)][2024-18-06 8:56AM]
❯ source .venv/bin/activate
(.venv)
~/demo-video [🐍pyenv 3.12.0 (.venv)][2024-18-06 8:56AM]
❯ which python
/Users/thomasmock/demo-video/.venv/bin/python
(.venv)
~/demo-video [🐍pyenv 3.12.0 (.venv)][2024-18-06 8:56AM]
❯ deactivate
(.venv)
~/demo-video [2024-18-06 8:56AM]
❯ which python
/Users/thomasmock/demo-video/.venv/bin/python
(.venv) |
Positron Version:
Positron dev
Steps to reproduce the issue:
I believe this is a side effect of
python.terminal.activateEnvironment
setting. By the time I have tried to activate one environment, I have 3 environments displayed, and the one I have activated is not actually the one in use.What did you expect to happen?
Python environments to deactivate properly.
Were there any error messages in the output or Developer Tools console?
None
The text was updated successfully, but these errors were encountered: