[Python] How to leave/exit/deactivate a Python virtualenv

Discussão em 'Python' iniciado por Stack, Agosto 12, 2025.

  1. Stack

    Stack Membro Participativo

    I'm using virtualenv and the virtualenvwrapper. I can switch between virtualenv's just fine using the workon command.

    me@mymachine:~$ workon env1
    (env1)me@mymachine:~$ workon env2
    (env2)me@mymachine:~$ workon env1
    (env1)me@mymachine:~$


    How do I exit all virtual environments and work on my system environment again? Right now, the only way I have of getting back to me@mymachine:~$ is to exit the shell and start a new one. That's kind of annoying. Is there a command to work on "nothing", and if so, what is it? If such a command does not exist, how would I go about creating it?

    Continue reading...

Compartilhe esta Página