How do you install or activate PyUno in LibreOffice?

Prof. Falken picture Prof. Falken · Oct 16, 2011 · Viewed 22.3k times · Source

How do you make Python (any Python) know about PyUno in LibreOffice?

When I do:

import uno

python says that it knows no module "uno". (This question came up re. this question.)

Answer

Peter Krauss picture Peter Krauss · Oct 29, 2014

(UPDATING for 2014's)

Perhaps the most used UNO application is document conversion... For this task, in nowadays, you not need UNO, you can use directly

libreoffice --convert-to

About UNO itself, see the new home page, http://api.libreoffice.org/

A good example of using python3-uno (or python-uno) is the Docvert conversor (Docvert for py2).