c# - 如何在 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.pyd
和Python.Runtime.dll
python3.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()
问:
- dotnet (pypi) 是否适用于 python3.9?
- 如何让我的 dotnet-dll 与 python3.9 一起运行?
解决方案
推荐阅读
- ajax - 为什么我在 ajax 请求后收到此错误(失败)net::ERR_CONNECTION_CLOSED?
- python - Json 文件和字典
- r - 闪亮/传单点击事件中的执行顺序
- android-studio - 使用 Android Studio 构建 APK Flutter 时出错
- c# - 在需求上添加具有可变参数的 .Net Core Policy
- python - 如何在 Python 中通过基于消息传递的调用使用 Async / Await
- c++ - 为什么将结构传递给函数而不是单独的参数?
- javascript - 调试 node.js 时出现“断点已设置但尚未绑定”错误
- r - RStudio 中的交互式 Treemap d3tree - 使用 savewidget() 时没有图例
- r - RMarkdown 无法正确呈现