You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nakulj I don't think venv supports having the virtual environment activated for child processes (e.g. tmux). It just happens to work, because the environment variables are exported to the child process.
You would have to activate the venv inside the tmux session again. With the fix in #93858, this shoud work :)
Either way, check if the implementation of virtualenv supports what you want to do. If it does, consider making a PR with the fix (the venv implementation is based on virtualenv).
Bug report
In Fish, when starting tmux after activating a virtual environment, the
deactivate
command is not available in the tmux session.$ python3 -m venv .venv $ source .venv/bin/activate.fish (.venv) $ tmux
This starts a tmux session with the virtual environment already activated, and working sort of correctly, but impossible to deactivate:
Your environment
Linked PRs
The text was updated successfully, but these errors were encountered: