我在尝试通过安装unirest时遇到此错误
pip install unirest
。日志是:
Collecting unirest Using cached Unirest-1.1.7.tar.gz (3.8 kB)
Collecting poster>=0.8.1 Using cached poster-0.8.1.tar.gz (12 kB)
ERROR: Command errored out with exit status 1:
command: /Users/myName/opt/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/h4/8kzrpj691l16fnhhk4f6tt3h0000gn/T/pip-install-jihzv5c9/poster_4dff16fbeb7a4722a40d2ad39d7f51d6/setup.py'"'"';
__file__='"'"'/private/var/folders/h4/8kzrpj691l16fnhhk4f6tt3h0000gn/T/pip-install-jihzv5c9/poster_4dff16fbeb7a4722a40d2ad39d7f51d6/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
/private/var/folders/h4/8kzrpj691l16fnhhk4f6tt3h0000gn/T/pip-pip-egg-info-guyaji8v
cwd: /private/var/folders/h4/8kzrpj691l16fnhhk4f6tt3h0000gn/T/pip-install-jihzv5c9/poster_4dff16fbeb7a4722a40d2ad39d7f51d6/
Complete output (10 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/h4/8kzrpj691l16fnhhk4f6tt3h0000gn/T/pip-install-jihzv5c9/poster_4dff16fbeb7a4722a40d2ad39d7f51d6/setup.py",
line 2, in <module>
import poster
File "/private/var/folders/h4/8kzrpj691l16fnhhk4f6tt3h0000gn/T/pip-install-jihzv5c9/poster_4dff16fbeb7a4722a40d2ad39d7f51d6/poster/__init__.py", line 29, in <module>
import poster.streaminghttp
File "/private/var/folders/h4/8kzrpj691l16fnhhk4f6tt3h0000gn/T/pip-install-jihzv5c9/poster_4dff16fbeb7a4722a40d2ad39d7f51d6/poster/streaminghttp.py",
line 61
print "send:", repr(value)
^
SyntaxError: invalid syntax
---------------------------------------- ERROR: Command error out with exit status 1: python setup.py egg_info Check the logs for full
command output.
如何使其正确安装。我使用mac OS
目前没有回答
相关问题 更多 >
编程相关推荐