Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deactivate virtualenv in PowerShell [duplicate]

So I am aware of virtualenv in PowerShell? question, specificly this answer, stating that all you need to activate is to execute

venv/Scripts/activate.ps1 

Of course it is required to set appropriate Execution Policy etc.

But my question is: How to disable virtualenv activated inside Power Shell?

I tried:

venv/Scripts/deactivate.ps1 

and

venv/Scripts/activate.ps1 deactivate

but first one fails because deactivate.ps1 does not exists and second one does not change anything.

like image 896
running.t Avatar asked Dec 21 '25 11:12

running.t


1 Answers

Just a moment after creating this question I've realized that answer is much simpler that I expected. All I need is to type

deactivate

inside virtualenv.

like image 193
running.t Avatar answered Dec 24 '25 00:12

running.t



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!