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?
Asked
Active
Viewed 468 times
1 Answers
1
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.
- Download cocos2d-0.4.0.zip from the official website
- Extract it anywhere
- Open a command-line in that folder
- type
python setup.py install
It even automatically installs pyglet.

Rebecca Chernoff
- 22,065
- 5
- 42
- 46

Magoo
- 76
- 2
- 8