SScode SScode - 6 months ago 21
Python Question

virtualenv won't activate on windows

Essentially I cannot seem to activate my virtualenv environment which I create.

I'm doing this inside of windows powershell through using

scripts\activate


but get an error message


"cannot be loaded because the execution of scripts is disabled on this
system".


Could this be because I don't carry admin privileges on my computer?

Answer

Moving comment to answers section :)

According to Microsoft Tech Support it might be a problem with Execution Policy Settings. To fix it, You should try executing Set-ExecutionPolicy Unrestricted -Force in Your Power Shell`.

NB: Remember to launch Power Shell as administrator.