Import pyglet on python -
i have downloaded pyglet.dmg file pyglet website , installed it.
the folder on saved is: /developer/pyglet
and on pydev editor state location want use by:
import sys sys.path.append('developer/pyglet') import pyglet music = pyglet.resource.media('music.mp3') music.play() pyglet.app.run()
but reason cant import:
python sound.py traceback (most recent call last): file "sound.py", line 3, in <module> import pyglet importerror: no module named pyglet
any idea on how make work?
ok got it.
i downloaded source files , compiled myself invoking:
sudo python setup.py install
and used sys import described in question.
Comments
Post a Comment