How to leave/exit/deactivate a Python virtualenv

前端 未结 13 1634
春和景丽
春和景丽 2020-11-27 08:42

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

me@mymachine:~$ workon          


        
13条回答
  •  没有蜡笔的小新
    2020-11-27 09:33

    I defined an alias, workoff, as the opposite of workon:

    alias workoff='deactivate'
    

    It is easy to remember:

    [bobstein@host ~]$ workon django_project
    (django_project)[bobstein@host ~]$ workoff
    [bobstein@host ~]$
    

提交回复
热议问题