首页 / PYTHON / python3安装poster库时报错解决:ERROR: Command errored out with exit status 1: python setup.py egg_info Check
python3安装poster库时报错解决:ERROR: Command errored out with exit status 1: python setup.py egg_info Check
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了python3安装poster库时报错解决:ERROR: Command errored out with exit status 1: python setup.py egg_info Check,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1901字,纯文字阅读大概需要3分钟。
内容图文
![python3安装poster库时报错解决:ERROR: Command errored out with exit status 1: python setup.py egg_info Check](/upload/InfoBanner/zyjiaocheng/627/c6c8c566fb1c445280c570552f4073d0.jpg)
D:\Python\Python37-32\test>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:\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-fw4y09fd\\poster\\setup.py'"'"'; __file__='"'"'C:\\Users\\jj\\AppData\\Local\\Temp\\pip-install-fw4y09fd\\poster\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\jj\AppData\Local\Temp\pip-pip-egg-info-ikqytp8b' cwd: C:\Users\jj\AppData\Local\Temp\pip-install-fw4y09fd\poster Complete output (10 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\jj\AppData\Local\Temp\pip-install-fw4y09fd\poster\setup.py", line 2, in <module> import poster File "C:\Users\jj\AppData\Local\Temp\pip-install-fw4y09fd\poster\poster\__init__.py", line 29, in <module> import poster.streaminghttp File "C:\Users\jj\AppData\Local\Temp\pip-install-fw4y09fd\poster\poster\streaminghttp.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?
内容总结
以上是互联网集市为您收集整理的python3安装poster库时报错解决:ERROR: Command errored out with exit status 1: python setup.py egg_info Check全部内容,希望文章能够帮你解决python3安装poster库时报错解决:ERROR: Command errored out with exit status 1: python setup.py egg_info Check所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。