我有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