首页 > 解决方案 > 命令“python setup.py egg_info”失败,错误代码 1 在 /tmp/pip-install-_p77_6kw/poster/

问题描述

pip3 安装海报

查看索引: http: //mirrors.aliyun.com/pypi/simple/

收集海报

下载 http://mirrors.aliyun.com/pypi/packages/9f/dc/0683a458d21c3d561ab2f71b4fcdd812bf04e55c54e560b0854cea95610e/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-install-_p77_6kw/poster/setup.py", line 2, in <module>
    import poster
  File "/tmp/pip-install-_p77_6kw/poster/poster/__init__.py", line 29, in <module>
    import poster.streaminghttp
  File "/tmp/pip-install-_p77_6kw/poster/poster/streaminghttp.py", line 61
    print "send:", repr(value)
                ^
SyntaxError: invalid syntax

----------------------------------------

命令“python setup.py egg_info”失败,错误代码 1 在 /tmp/pip-install-_p77_6kw/poster/

这个问题可以在这里用python2和python3吗? help mi

标签: pythonpython-3.xpython-2.7

解决方案


根据bitbucket 上的海报存储库中的问题 #24,海报仅适用于 python 版本 2.4 到 2.7。您需要为您的项目使用 python2,自己将海报代码移植到 python3,或者找到其他解决方案。


推荐阅读