报错信息
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