cannot be loaded because running scripts is disabled on this system

  I was installing python in my windows 10 machine. 

then I create a virtual environment, I can't activate it. When I run, it says : 

".......\Scripts\activate.ps1 cannot be loaded because running scripts is 

disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. 


after google the phase I have come the following solution : 


Step 01 : run Windows PowerShell
Step 02 : run the following script 
"Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted"
Step 03: press "Y"  



When I activate virtual environment it works fine : 




check out link. I found this very helpful. 

Comments