通过将它们移动到我的 python 安装的 Lib 文件夹中进行安装后,尝试导入 cocos 时出现此错误。
Traceback (most recent call last):
File "C:/Users/test/PycharmProjects/Testing/main.py", line 1, in <module>
import cocos
File "C:\Python34\lib\cocos\__init__.py", line 69, in <module>
import os, pyglet
File "C:\Python34\lib\pyglet\__init__.py", line 276
print '[%d] %s%s %s' % (thread, indent, name, location)
^
SyntaxError: invalid syntax