Exception:“Delegates”的类型初始值设定项引发异常。Could not load C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\python312.dll.拒绝访问。

报错信息 1
TypeInitializationException: “Delegates”的类型初始值设定项引发异常。
--TypeName: Delegates
StackTrace:
   在 Python.Runtime.Runtime.Delegates.get_Py_IsInitialized()
   在 Python.Runtime.Runtime.Py_IsInitialized()
   在 Python.Runtime.Runtime.<>c.<Initialize>b__32_0()
   在 Python.Runtime.Runtime.TryUsingDll[T](Func`1 op)
   在 Python.Runtime.Runtime.Initialize(Boolean initSigs)
   在 Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv, Boolean initSigs)
   在 Quicker.Domain.Actions.X.BuiltinRunners.Other.RunPythonScriptStep.<>c__DisplayClass39_1.rauwJqp36Thi5paf71wg()
   在 Quicker.Domain.Actions.X.BuiltinRunners.Other.RunPythonScriptStep.<>c__DisplayClass39_1.yoY7FRPmhIm()
   在 KkFadwoLjvJKrqYke7e.taeU0woKtqi0l0XgR6d.<>c__DisplayClass3_0.KM97se7TWni()
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ThreadHelper.ThreadStart()

DllNotFoundException: Could not load C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\python312.dll.
StackTrace:
   在 Python.Runtime.Platform.WindowsLoader.Load(String dllToLoad)
   在 Python.Runtime.Runtime.Delegates..cctor()

Win32Exception: 拒绝访问。
--NativeErrorCode: 5
StackTrace:


版本:1.43.0 2024-06-24 23:00 Microsoft Windows NT 10.0.19045.0