【发布时间】:2016-11-13 21:35:25
【问题描述】:
我有 Debian/Cinnamon,我正在尝试安装 python lpod-python 包,以便可以从 Python 3.4 打开 LibreOffice 文件。还安装了 Python 2.7 和 Idle 3。
当我尝试时
pip3 install lpod-python
它失败了。我已经阅读了 pip install 错误代码为 1 的所有其他答案,并且我确信 pip 和 setuptools 已正确安装并且是最新的,所以还有其他问题。
ed@eddebian:~$ 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 git debian pip lpod