无法加载文件 C:\Users\xxx\Documents\WindowsPowerShell\profile.ps1

无法加载文件 C:\Users\xxx\Documents\WindowsPowerShell\profile.ps1

本次尝试解决方法:

使用管理远打开 windows powershell

运行以下内容

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
注:
-Scope CurrentUser 不是必须的,从安全性来讲,最小化应用域而已
RemoteSigned 是一个相对靠谱的策略,当然还有其他选择,详见 [1]

根据提示,输入"Y",确认即可

运行后,重新打开pycharm,或者powershell,都不再显示红字错误,即完美解决

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/132975568