问题描述
我尝试使用Python.NET在python中将引用添加到Microsoft.Office.Interop.Word。我运行以下命令,并在ipython控制台中获得以下输出。
import clr
clr.AddReference("Microsoft.Office.Interop.Word")
Traceback (most recent call last):
File "<ipython-input-2-6a6a8e7c86a2>",line 1,in <module>
clr.AddReference("Microsoft.Office.Interop.Word")
FileNotFoundException: Unable to find assembly 'Microsoft.Office.Interop.Word'.
at Python.Runtime.CLRModule.AddReference(String name)
我安装了“用于Office运行时可再发行的Visual Studio工具”(2010)。我拥有的Office版本是2013。不确定我是否需要安装更高版本的可再发行组件。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)