【问题标题】:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-_p77_6kw/poster/命令“python setup.py egg_info”失败,错误代码 1 在 /tmp/pip-install-_p77_6kw/poster/
【发布时间】:2019-08-10 01:15:09
【问题描述】:

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”失败,在/tmp/pip-install-_p77_6kw/poster/中出现错误代码1

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

【问题讨论】:

  • 我不知道我能解决什么版本问题
  • 哪里可以在 python3 获得海报
  • 结束了我杀了它

标签: python python-3.x python-2.7


【解决方案1】:

根据the poster repository on bitbucket 中的issue #24,poster 仅适用于python 2.4 到2.7 版本。您需要将 python2 用于您的项目,自己将海报代码移植到 python3,或者找到其他解决方案。

【讨论】:

  • 想再试一次:)
  • 但在 ubantu 中我做不到
【解决方案2】:

github 可以帮助你在海报上使用 2to3

【讨论】:

  • 我认为是这样,但有另一个问题
猜你喜欢
  • 1970-01-01
  • 2019-06-01
  • 2018-11-12
  • 2019-08-21
  • 2020-07-19
  • 2019-05-29
  • 1970-01-01
  • 1970-01-01
  • 2018-12-03
相关资源
最近更新 更多