2014-08-29 134 views
2

林具有在3.4 pyglet很大的麻烦,从二进制安装并未能因此试图点子,这一次它安装,但在导入它,我得到:Pyglet为Python 3.4

Traceback (most recent call last): 
File "<pyshell#1>", line 1, in <module> 
    import pyglet 
File "C:\Python34\lib\site-packages\pyglet\__init__.py", line 249 
    print '%s%s %s' % (indent, name, location) 
      ^
SyntaxError: invalid syntax 

任何想法?

已经检查了这个网站(http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame),但没有任何东西。

我真的需要这个模块,没有别的比较。

帮助!!

在此先感谢

(这是在Win 7)

回答

0

您在python 3解释使用python 2包。

print '%s%s %s' % (indent, name, location) <- python2 syntax 

还有就是Python 3