我有Debian/Cinnamon,我试图安装python lpod-python软件包,所以我可以从Python 3.4打开LibreOffice文件。 Python 2.7和Idle 3也被安装。PIP安装lpod失败错误1和无效语法
当我尝试
pip3 install lpod-python
失败。我已经阅读了所有其他的错误代码为1的pip安装的答案,并且我确定pip和setuptools已正确安装并且是最新的,所以其他内容是错误的。
[email protected]:~$ pip3 install lpod-python
Downloading/unpacking lpod-python
Downloading lpod-python-1.1.6.tar.gz (1.6MB): 1.6MB downloaded
Running setup.py (path:/tmp/pip-build-r0wgfnfi/lpod-python/setup.py) egg_info for package lpod-python
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-r0wgfnfi/lpod-python/setup.py", line 35, in <module>
from release import has_git, get_release
File "/tmp/pip-build-r0wgfnfi/lpod-python/release.py", line 92
print get_release()
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-r0wgfnfi/lpod-python/setup.py", line 35, in <module>
from release import has_git, get_release
File "/tmp/pip-build-r0wgfnfi/lpod-python/release.py", line 92
print get_release()
^
SyntaxError: invalid syntax
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-r0wgfnfi/lpod-python
我接下来尝试从git克隆lpod并从命令行运行setup.py。我得到相同的语法错误,但不是错误代码1.
我目前有一个通过将.odt文件转换为文本的解决方法,但它可以大大提高我的生产力,如果我可以直接读入python。任何帮助将不胜感激。
谢谢你的答案。我选择了Python 3是因为它(在我看来)有一个更好的方法来处理我需要的特殊字符的unicode。到目前为止,我正在使用解决方法进行管理并等待lpod进行升级 – edmundb