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

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

 

PS D:\boshi\myvenv\Scripts> .\activate
File 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章