繁体   English   中英

如何在 Python3.9 上安装 dotnet clr?

[英]How to install dotnet clr on Python3.9?

我可以使用带有 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/下载了 a.whl,但是:

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

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

使用来自 python3.7 的旧文件clr.pydPython.Runtime.dll确实导致:

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()

问:

  • dotnet (pypi) 是否适用于 python3.9?
  • 如何让我的 dotnet-dll 与 python3.9 一起运行?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM