使用管理员权限打开PowerShell

get-ExecutionPolicy   # Restricted,受限制

set-ExecutionPolicy RemoteSigned # 这里会有提示,选A就行

get-ExecutionPolicy # RemoteSigned 可以了。