我试图从http://developer.berlios.de/project/showfiles.php?group_id=2116安装gpsd,但当我在文件夹上运行scons时,我得到:

scons: Reading SConscript files ...
File "/root/gpsd/gpsd-3.0/SConstruct", line 290

with open("xmltest.xml", "w") as ofp:

        ^

SyntaxError: invalid syntax

最佳答案

更新到了Python2.7,并且运行良好。

10-08 04:15