python - 导入 clr 导入错误 : No module named clr

标签 python .net mono clr python.net

我有 Ubuntu 12.04。我尝试在 python 代码中导入 clr,但出现此错误。

我浏览了链接。但一切都是徒劳。有没有办法检查“clr”是否存在? 我如何查看该模块是否存在?

最佳答案

您需要安装 Mono 框架才能在 Ubuntu 上运行 .NET。请引用下面的链接来帮助您安装.NET框架。然后 CLR 将可用于您的代码,或者您可以在安装 Mono 后在代码中引用 CLR。​​

https://askubuntu.com/questions/497358/how-to-install-mono-on-ubuntu-64-bit-v14-04

关于python - 导入 clr 导入错误 : No module named clr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32943150/

相关文章:

.net - 我可以使用 Linux/Mono 来部署 aspnet web 应用程序吗?

.net - 我的服务以什么帐户运行?

.net - Nuget 尝试在某些包上安装大量依赖项

c# - 启用 System.Timers.Timer 和 GarbageCollector

python pandas 根据条件添加列内容

c - MonoMac NSDrawThreePartImage/C 绑定(bind)

c# - 无需单独安装 GTK# 的 GTK# .NET 应用程序

python - rc.local 和 python 脚本

python - 使我的 NumPy 数组跨进程共享

python - 在python中索引所有*除了*一项