python-daemon 2.0.5不会用pip安装

时间:2015-02-10 22:23:15

标签: python pip python-daemon

尝试使用pip&安装python-daemon 2.0.5时遇到错误python 2.6。我知道有其他问题引用python-daemon 2.0.3有这个问题。但那些答案表明它现在应该修复。

我也尝试过安装旧版本,但没有运气。虽然如果我重新开始使用新的virtualenv,我可以安装1.5.6。然而,在这个virtualenv中,我得到了与2.0.5和1.5.6相同的错误

(py26)[brianb@api 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

1 个答案:

答案 0 :(得分:0)

这很奇怪!我也尝试升级virtualenv,但这没有用。

为了让它运行,我不得不升级到Python 2.7。