在安装过Anaconda后使用PowerShell报错:
- PowerShell默认禁止运行脚本,但是因为安装Anaconda后再启动PowerShell时需要运行脚本,所以会报错。
- 可以通过在PowerShell中执行 get-ExecutionPolicy 语句验证这点,如图:
解决方案(步骤)表示在PowerShell中运行脚本是禁止的
- “以管理员身份运行”PowerShell,如图:
- 在PowerShell中执行 set-ExecutionPolicy RemoteSigned,然后输入 Y,如图:
- 之后再运行PowerShell即可恢复正常,如图:



