4
我在嘗試使用pip & python 2.6安裝python-daemon 2.0.5時出現錯誤。我知道還有其他問題引用了python-daemon 2.0.3有這個問題。但是這些答案表明現在應該修復。python-daemon 2.0.5不會與pip一起安裝
我試着安裝舊版本,也沒有運氣。雖然如果我用新的virtualenv重新開始,我可以安裝1.5.6。然而,在這種virtualenv中我得到了同樣的錯誤與2.0.5和1.5.6
(py26)[[email protected] proj]$ pip install python-daemon
Downloading/unpacking python-daemon
Downloading python-daemon-2.0.5.tar.gz (71Kb): 71Kb downloaded
Running setup.py egg_info for package python-daemon
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/brianb/py26/build/python-daemon/setup.py", line 26, in <module>
import version
File "version.py", line 438
for item in versions}
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/brianb/py26/build/python-daemon/setup.py", line 26, in <module>
import version
File "version.py", line 438
for item in versions}
^
SyntaxError: invalid syntax
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/brianb/.pip/pip.log
我無法在'py26'環境中重現您的錯誤。 – cel 2015-02-10 22:30:40
謝謝,我解決了我的問題,我使用了一箇舊的virtualenv,它擁有pip 1.0.2,我在機器上升級了virtualenv,創建了一個新的環境,並且獲得了能夠安裝python-daemon的pip 6.0.8。 – bwbrowning 2015-02-10 22:46:31