python - 命令“python setup.py egg_info”失败,错误代码 1 在 /tmp/pip-install-_p77_6kw/poster/
问题描述
pip3 安装海报
查看索引: http: //mirrors.aliyun.com/pypi/simple/
收集海报
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
解决方案
根据bitbucket 上的海报存储库中的问题 #24,海报仅适用于 python 版本 2.4 到 2.7。您需要为您的项目使用 python2,自己将海报代码移植到 python3,或者找到其他解决方案。
推荐阅读
- flutter-web - Finished with error: 无法与 Chrome 中的应用程序实例建立连接
- typescript - 在 Angular 8 中编译动态 html 字符串
- python - 将数据框列分成两列,一列包含数字,另一列包含文本
- jenkins - Jenkins文件我们可以使用IF语句吗
- html - 具有自定义文件名功能的 PDFPrinter 驱动程序
- scala - 如何在 Scala 中使用 Circe 解码具有不同数据类型的 JSON 列表
- php - WordPress get_query_var( 'view-order' ) 返回一个空结果
- docker - Docker logs 命令不显示任何日志
- mysql - MySQL为另一列中的每个唯一值选择最新条目
- java - 实现 Runnable 的类中的 Advice 方法