9

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.

0

1 Answer 1

23

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.

1
  • 2
    > ... It is better to ask a stupid question first, so you save a lot of time for everyone. JBP Nov 20, 2022 at 20:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.