• python3安装poster库时报错解决:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


    D:PythonPython37-32	est>pip install poster
    Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
    Collecting poster
      Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9f/dc/0683a458d21c3d561ab2f71b4fcdd812bf04e55c54e560b0854cea95610e/poster-0.8.1.tar.gz (12 kB)
        ERROR: Command errored out with exit status 1:
         command: 'd:pythonpython37-32python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\xx\AppData\Local\Temp\pip-install-fw4y09fd\poster\setup.py'"'"'; __file__='"'"'C:\Users\xx\AppData\Local\Temp\pip-install-fw4y09fd\poster\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
    '"'"', '"'"'
    '"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UsersxxAppDataLocalTemppip-pip-egg-info-ikqytp8b'
             cwd: C:UsersxxAppDataLocalTemppip-install-fw4y09fdposter
        Complete output (10 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "C:UsersxxAppDataLocalTemppip-install-fw4y09fdpostersetup.py", line 2, in <module>
            import poster
          File "C:UsersxxAppDataLocalTemppip-install-fw4y09fdposterposter\__init__.py", line 29, in <module>
            import poster.streaminghttp
          File "C:UsersxxAppDataLocalTemppip-install-fw4y09fdposterposterstreaminghttp.py", line 61
            print "send:", repr(value)
                        ^
        SyntaxError: invalid syntax
        ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

     很多从网上拷贝的python脚本是2.x版本写的,用的库也是2.x,所有要换成3.x的库和语法!!

     

    换成poster3就OK了!!相应的代码中的所有poster替换成poster3:

      

     全部替换成poster3:

     

     参考:

    python3安装poster报错_qq_41663800的博客-CSDN博客_python3 poster 

    python pip install poster gives me error --> Command "python setup.py egg_info" failed with error code 1 in C:Users - Stack Overflow 

    奶奶问孙子:4+1等于几 孙子说:等于6-1。 奶奶说:你明明知道答案,为什么不说? 孙子说:年轻人不讲5的……..
  • 相关阅读:
    BZOJ2303:[APIO2011]方格染色(并查集)
    BZOJ1116:[POI2008]CLO(并查集)
    BZOJ4011:[HNOI2015]落忆枫音(DP,拓扑排序)
    洛谷1387 最大正方形
    洛谷 P1858 多人背包
    vijos 1085 Sunnypig闯三角关
    vijos 1030 重叠的方框
    codevs 1001 舒适的路线 WK
    1266. [NOIP2012] 借教室
    codevs 2370 小机房的树
  • 原文地址:https://www.cnblogs.com/jasy/p/13438715.html
Copyright © 2020-2023  润新知