我试图在python中使用uno将数据插入libreoffice 但当我尝试导入uno iam时
文件“/usr/local/lib/python3.5/dist-packages/uno/init.py”,第4行,in 来自base import Element,Css,Payload,UnoBaseFeature,UnoBaseField
iam使用python 3.5,我安装了python3-uno
关注https://www.codeproject.com/Tips/1065823/PyOOCalc-Python-Libre-Open-Office-Calc-Interface-A
注意:导入pyoocalc导入uno
答案 0 :(得分:0)
对于Ubuntu 16.04,添加以下行:
export PYTHONPATH=/usr/lib/python3/dist-package
进入〜/ .bashrc并执行:
source ~/.bashrc