Pyoocalc无法导入uno

时间:2017-05-09 14:14:17

标签: python-3.x

我试图在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

1 个答案:

答案 0 :(得分:0)

对于Ubuntu 16.04,添加以下行:

export PYTHONPATH=/usr/lib/python3/dist-package

进入〜/ .bashrc并执行:

source ~/.bashrc