首页 > 解决方案 > 如何在 Python3.9 上安装 dotnet clr?

问题描述

我可以使用带有 python2.7 和 python3.7/64Bit 和 32Bit 的 dotnet-DLL。但我坚持使用python3.9。

pip3 install dotnet

结果是

ERROR: Could not find a version that satisfies the requirement dotnet
ERROR: No matching distribution found for dotnet

我从https://pypi.org/project/dotnet/1.3.1/下载了一个 .whl,但是:

ERROR: dotnet-1.3.1-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

我有 Win10-64 和 python3.9-64。

使用旧文件clr.pydPython.Runtime.dllpython3.7 确实导致:

Unbehandelte Ausnahme: System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.DllNotFoundException: Die DLL "python37": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden.
   bei Python.Runtime.Runtime.Py_IsInitialized()
   bei Python.Runtime.Runtime.Initialize(Boolean initSigs)
   bei Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv, Boolean initSigs)
   bei Python.Runtime.PythonEngine.InitExt()
   --- Ende der internen Ausnahmestapel�berwachung ---
   bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bei System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   bei clrModule.PyInit_clr()

问:

标签: c#python-3.x

解决方案


推荐阅读