Error of using cocos2d python 3.5
Posted: Thu Mar 15, 2018 4:18 pm
Hello, I have problem with use of the cocos2d on python 3.5
I install cocos2d with pip3. Cocos2d successfully installed.
I tried to start program:
https://github.com/CoderDojoLu/cocos2d- ... loWorld.py
But I got:
How I can resolve problem?
I install cocos2d with pip3. Cocos2d successfully installed.
I tried to start program:
https://github.com/CoderDojoLu/cocos2d- ... loWorld.py
But I got:
Code: Select all
Cannot import cocos. Did you run 'pip install cocos2d' ?
Traceback (most recent call last):
File "/home/pi/Desktop/test.py", line 7, in <module>
class HelloWorld(cocos.layer.Layer):
NameError: name 'cocos' is not defined

