I get the following error when installing the Python package with pip:
Collecting unirest
Downloading https://files.pythonhosted.org/packages/92/da/2149cbd7a8c78f8b76b377379c1bda64ec36cc13315d55f6f7de6d094ac5/Unirest-1.1.7.tar.gz
Collecting poster>=0.8.1 (from unirest)
Downloading https://files.pythonhosted.org/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 “/private/var/folders/vp/7bj8z52s43d6nlr727w0mvpw0000gn/T/pip-install-eqj95y6h/poster/setup.py”, line 2, in <module>
import poster
File “/private/var/folders/vp/7bj8z52s43d6nlr727w0mvpw0000gn/T/pip-install-eqj95y6h/poster/poster/init.py”, line 29, in <module>
import poster.streaminghttp
File “/private/var/folders/vp/7bj8z52s43d6nlr727w0mvpw0000gn/T/pip-install-eqj95y6h/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 /private/var/folders/vp/7bj8z52s43d6nlr727w0mvpw0000gn/T/pip-install-eqj95y6h/poster/
Any ideas how to resolve the error, please?
加入讨论 - 在下面添加评论:
Thanks - looks like it only works with Python 2.
Could this be your issue?
https://stackoverflow.com/questions/28251242/does-unirest-support-python3