python3安装poster报错

报错信息

root@iZ2zef0icee95uw35ttpgmZ:~/wx# sudo pip3 install poster
Collecting poster
  Downloading http://mirrors.cloud.aliyuncs.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-build-ivm6deh5/poster/setup.py", line 2, in <module>
        import poster
      File "/tmp/pip-build-ivm6deh5/poster/poster/__init__.py", line 29, in <module>
        import poster.streaminghttp
      File "/tmp/pip-build-ivm6deh5/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-ivm6deh5/poster/

原因

poster只支持python2,poster3支持Python3

C:\Users\23263>pip install poster3
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting poster3
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/82/f5/519cc8eae59eb24a3344a08486ea3a2795fbe61d62f8b37d50dec24bcaac/poster3-0.8.1-py3-none-any.whl
Installing collected packages: poster3
Successfully installed poster3-0.8.1

参考

点击

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值