Question

I am trying to use Python 3.3 when developing my next game using Cocos2d. I succeeded in installing Pyglet (a Cocos2d dependency) in Python 3.3 but failed to do so for Cocos2d.

The Cocos2d project page lists Python 2.6 as a requirement, but from this thread in the Cocos2d Google Group it appears that someone has made Cocos2D work with Python 3.3

Previously, using Python3.3 as the default Python interpreter, I use : pip install cocos2d. But as it failed, I download manually cocos2d and using a plain python setup.py install. Still not working. So I decided to follow the same procedure to install pyglet first, it worked. But in trying to convert cocos2d using 2to3 it failed with many errors.

Actually, if Python 3.3 is not yet to be supported by Cocos2d.. well, I guess I have to use Python 2.7 then.

But, is there anyone success in installing Cocos2d in Python 3.3 and elaborating the process of how to successfully installing it?

Was it helpful?

Solution

Cocos2d now supports 3.4 Download Tortoisehg -- http://tortoisehg.bitbucket.io/download/ Install, open it and go to "View" and click "Show Console" -- At the bottom of the TortoiseHg window there will be a console, paste in `

easy_install cocos2d

YOU need: Pyglet 1.2, "Six", libraries as well. I spent 3 hours trying to figure it out, I know this post is old, but this is the only post I could find for my issues, now I know that Answer, hopefully someone will see this. Does not help being a noob to programming, as I experienced first hand.

OTHER TIPS

From this page, they already answer it, "Current cocos does not support python 3. The next release probably will, but not earlier than april 2014." so, I guess currently it's not possible. I am working with Python 2.7 now.

pip3 install cocos2d. pip is for python version 2.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top