2023年01月29日
2023/01/29 21:14 Powershell无法运行脚本,提示错误: & : 无法加载文件 S:\Env\pyenv\py37\Scripts\activate.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.mic rosoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 所在位置 行:1 字符: 3 + & S:\Env\pyenv\py37\Scripts\activate.ps1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [],PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess 解决的方法也很简单: set-executionpolicy remotesigned 选择A即可。