gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 07:22:40 24 4
gpt4 key购买 nike

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

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

PowerShell says "execution of scripts is disabled on this system."

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-more-details/

我改变了执行策略,

enter image description here

但我总是遇到同样的错误。

最佳答案

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

我会尝试打开 32 位控制台 (PowerShell (x86)) 并在那里设置执行策略,因为错误肯定指向这种分辨率。

关于entity-framework - 无法加载文件,因为在此系统上禁用了脚本的执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19100481/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com