Run Anaconda Script in Powershell to Error


I met this error when open Powershell

+ . <<<<  'C:\Users\user\Documents\WindowsPowerShell\profile.ps1'
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException

after running

conda init powershell

It get solved by execute this in Powershell

Set-ExecutionPolicy Unrestricted -Scope CurrentUser

发表评论

电子邮件地址不会被公开。 必填项已用*标注