" python setup.py egg_info"通过pip安装unirest时失败,错误代码为1

时间:2016-06-15 11:02:16

标签: python pip python-2.x unirest

我在Ubuntu 14.04上并且在我的系统中安装了python 2.7和3.4。我试图使用pip安装python的unirest。但它返回以下错误。

>> [sudo] pip install unirest
Collecting unirest
  Using cached Unirest-1.1.7.tar.gz
Collecting poster>=0.8.1 (from unirest)
  Using cached poster-0.8.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-7ur_3q0v/poster/setup.py", line 2, in <module>
        import poster
      File "/tmp/pip-build-7ur_3q0v/poster/poster/__init__.py", line 29, in <module>
        import poster.streaminghttp
      File "/tmp/pip-build-7ur_3q0v/poster/poster/streaminghttp.py", line 61
        print "send:", repr(value)
                    ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7ur_3q0v/poster/
>>

我也在这里尝试了解决方案&#34; pip fails to install anything, error: invalid command 'egg_info'&#34;,但它没有用。

请帮忙

0 个答案:

没有答案