How to leave/exit/deactivate a Python virtualenv

前端 未结 13 1644
春和景丽
春和景丽 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:22

    To activate a Python virtual environment:

    $cd ~/python-venv/
    $./bin/activate
    

    To deactivate:

    $deactivate
    

提交回复
热议问题