在python3.6上使用pip安装pyradar软件包时出错
问题描述:
C:\Program Files\Python36-32\Scripts>pip install pyradar
Collecting pyradar
Using cached pyradar-0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Ghazal\AppData\Local\Temp\pip-build-jcyxj24c\pyradar\setup.
py", line 85
print "\n{}\n{}\n{}\n{}\n".format(msg, limits,
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Ghazal\A
ppData\Local\Temp\pip-build-jcyxj24c\pyradar\
你确定pyradar可用于python3.x? –
不可以。它可用于python 2.7 – Ghazal
您正在从python3运行pip,因此它会给您提供错误。您必须使用pip2(pip python2)才能成功安装 –