美文网首页
module 'clr' has no attribute 'A

module 'clr' has no attribute 'A

作者: BI罗 | 来源:发表于2021-02-11 10:19 被阅读0次

开发powerbi第三方插件需要使用pythonnet来使python调用C#的dll文件,
import clr和clr.AddReference()来调用dll文件,报错module 'clr' has no attribute 'AddReference'
应该pip install pythonnet,而不是pip install clr命令,否则就会安装另外一个名为clr的包。

相关文章

网友评论

      本文标题:module 'clr' has no attribute 'A

      本文链接:https://www.haomeiwen.com/subject/fkolxltx.html