官术网_书友最值得收藏!

Setting up Python

All the Cocos2d-x configuration files are written in Python. If you are using Mac OS or any Linux distribution, it will already be installed on your OS. So, you can skip this section.

If you are using Windows, you need to download Python 2 from the following link: https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi.

Take in to consideration that Python, as Cocos2d-x, keeps simultaneous support for versions 2 and 3. Cocos2d-x only supports Python 2. At the time of writing this book the latest version of the 2 branch was 2.7.8.

After the installer finishes with the setup, you should manually add the Python installation path to the PATH environment variable. The default installation path is C:\Python27.

Open a new system console and type python, if the Python console is shown, as seen in the following screenshot, then it means that Python has been installed correctly:

Setting up Python

Note

For setting an environment variable on Windows, click on the Start button and type: edit the system environment variables, click on it and hit the Environment Variables button, and then the environment variables configuration dialog will be displayed.

主站蜘蛛池模板: 延边| 乳山市| 东辽县| 拉萨市| 东丽区| 焉耆| 信丰县| 萝北县| 安新县| 吴桥县| 靖州| 长岛县| 五峰| 安阳市| 正定县| 东兰县| 海盐县| 乌海市| 孝义市| 景东| 齐齐哈尔市| 新巴尔虎左旗| 宁明县| 合川市| 淮北市| 肥乡县| 金堂县| 民乐县| 女性| 江都市| 嘉定区| 横峰县| 鸡东县| 台北市| 博爱县| 体育| 平原县| 奉化市| 平泉县| 乌兰察布市| 湖南省|