Reputation: 1838
I'm trying to use a game library called Cocos2d in python. However, I can't really import it. It's installed in one of python's lib directories, and when I import it, it's saying that it's not there. I know it has to do with pythonpath (provided in the IDE I'm using) but I'm not sure how to set it up. I've tried just adding the folder with cocos2d to the python path but it doesn't appear to work. The file's name is not cocos nor are there any files in the same directory with said name. Any suggestions?
Upvotes: 1
Views: 486
Reputation: 76
Do you get an import error message ?
I don't know how you installed it but here are the steps I just did and which are working here.
python setup.py install
It even automatically installs pyglet.
Upvotes: 1