如何在LibreOffice中安装或激活PyUno? [英] How do you install or activate PyUno in LibreOffice?
本文介绍了如何在LibreOffice中安装或激活PyUno?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在LibreOffice中使Python(任何Python)了解PyUno?
How do you make Python (any Python) know about PyUno in LibreOffice?
当我这样做时:
import uno
python表示它不知道模块"uno". (此问题重新出现.
python says that it knows no module "uno". (This question came up re. this question.)
推荐答案
这就是我所做的:
在LibreOffice目录中,有一个带有python.exe的程序"目录,如果我使用该python(版本2.6.1),则可以导入uno.
inside the LibreOffice directory, there is a "program" directory with a python.exe, if I use that python (which is at version 2.6.1), I can import uno.
这篇关于如何在LibreOffice中安装或激活PyUno?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文