zl程序教程

您现在的位置是:首页 >  后端

当前栏目

venv\Scripts\activate.ps1,因为在此系统上禁止运行脚本。pycharm:无法加载文件activate.ps1,因为在此系统上禁止运行脚本,Windows10系统

Pycharm文件系统 运行 脚本 无法 加载 禁止
2023-09-11 14:14:25 时间

问题

无法加载文件 venv\Scripts\activate.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/  fwlink/?LinkID=135170 中的 about_Execution_Policies。     + CategoryInfo          : SecurityError: (:) [],ParentContainsErrorRecordException     + FullyQualifiedErrorId : UnauthorizedAccess
Import-Module : 无法加载文件,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 abou t_Execution_Policies。 所在位置 行:7 字符: 1 + Import-Module "$Env:_CONDA_ROOT\shell\condabin\Conda.psm1" -

解决方案

1 以管理员的方式打开powershell然后运行

https://blog.csdn.net/zhangphil/article/details/124869193

2

在pycharm终端也需要 set-executionpolicy remotesigned

https://blog.csdn.net/freedomofu/article/details/126537492