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

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.

主站蜘蛛池模板: 巩义市| 横峰县| 新闻| 灵璧县| 泾川县| 紫阳县| 霍山县| 马公市| 合川市| 布尔津县| 尼勒克县| 贵溪市| 翼城县| 景泰县| 松潘县| 保德县| 武鸣县| 通化市| 正阳县| 张掖市| 东丽区| 沙洋县| 武宣县| 河北区| 石首市| 化州市| 正安县| 区。| 沧州市| 响水县| 上杭县| 常德市| 湖南省| 长葛市| 株洲市| 资溪县| 集贤县| 固镇县| 浮山县| 鄢陵县| 林西县|