How to install dotnet clr on Python3.9?


I can work with a dotnet-DLL with python2.7 and python3.7/64Bit and 32Bit. But I stuck with python3.9.

pip3 install dotnet

results in

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

I downloaded a .whl from but:

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

I've got Win10-64 and python3.9-64.

Using the old files clr.pyd and Python.Runtime.dll from python3.7 did result in:

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


  • Does dotnet (pypi) work with python3.9?
  • How can I get my dotnet-dll running with python3.9?
asked on Stack Overflow Mar 9, 2021 by rundekugel

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0