无法加载文件,因为在此系统上禁用了脚本的执行

Ali*_*hşi 3 powershell entity-framework ef-code-first

File C:\Users\Acer\Desktop\Projelerim\BEM_CANLI\BEM\packages\EntityFramework.5.
0.0\tools\init.ps1 cannot be loaded because its execution is blocked by softwar
e restriction policies. For more information, contact your system administrator.
At line:1 char:44
+ $__pc_args=@(); $input|%{$__pc_args+=$_}; & <<<<  'C:\Users\Acer\Desktop\Proj
elerim\BEM_CANLI\BEM\packages\EntityFramework.5.0.0\tools\init.ps1' $__pc_args[
0] $__pc_args[1] $__pc_args[2]; Remove-Variable __pc_args -Scope 0
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException
Run Code Online (Sandbox Code Playgroud)

我在包管理器控制台中遇到上述错误.我找到了一些解决方案,但我无法修复它.我试过以下

PowerShell说"在这个系统上禁用了脚本的执行."

http://sqlish.com/file-ps1-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-please-see-get-help-about_signing-for-更多细节/

我改变了执行政策,

在此输入图像描述

但我总是得到同样的错误.

Mik*_*ard 6

您可能更改了64位PowerShell的执行策略,并且程序包管理器正在运行32位(反之亦然).

我尝试打开32位控制台(PowerShell(x86))并在那里设置执行策略,因为错误肯定指向那种解决方案.