module 'clr' has no attribute 'A

2021-02-11  本文已影响0人  BI罗

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

上一篇 下一篇

猜你喜欢

热点阅读