我遵循了来自网站https://oosheet.readthedocs.io/en/stable/index.html的指示,如下所示:
`anonymous@Zeus:~$ pip3 install oosheet
Requirement already satisfied: oosheet in ./anaconda3/lib/python3.6/site- packages (1.3)
anonymous@Zeus:~$ sudo aptitude install python3-uno
[sudo] password for anonymous: python3-uno is already installed at the requested version (1:6.0.3-0ubuntu1)
python3-uno is already installed at the requested version (1:6.0.3-0ubuntu1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.`
`anonymous@Zeus:~$ libreoffice --calc --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"'
`anonymous@Zeus:~$ oosheet-launch
Traceback (most recent call last):
File "/home/anonymous/anaconda3/bin/oosheet-launch", line 7, in <module>
from oosheet import launch
File "/home/anonymous/anaconda3/lib/python3.6/site-packages/oosheet /__init__.py", line 38, in <module>
import uno, re, zipfile, types, inspect, tempfile, shutil, subprocess
ModuleNotFoundError: No module named 'uno'
在iPython中使用IDLE
`Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "copyright", "credits" or "license()" for more information.
>>> from oosheet import OOSheet as S
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from oosheet import OOSheet as S
ModuleNotFoundError: No module named 'oosheet'
>>>
问题出在哪里?