pycharm Activate.ps1 cannot be loaded because the execution of scripts is disabled on this system.

 

PS D:\boshi\myvenv\Scripts> .\activateFile D:\boshi\myvenv\Scripts\Activate.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.At line:1 char:11+ .\activate <<<<     + CategoryInfo          : NotSpecified: (:) [], PSSecurityException    + FullyQualifiedErrorId : RuntimeException PS D:\boshi\myvenv\Scripts>

 

cmd窗口执行:

set-ExecutionPolicy RemoteSigned

查看原文