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

发表评论

zh_CN简体中文