问答详情
源自:2-2 Cocos2d-x游戏开发贪吃蛇之开发环境搭建

环境搭建输入cocos.py new Snake -l lua -d g:\imooc无法创建Sanke工程

http://img.mukewang.com/573ee62d0001421406840267.jpg

请问老师这是怎么回事?  

提问者:紫菜蛋花汤0 2016-05-20 18:26

个回答

  • maolins
    2020-06-05 05:53:24

    cocos2d-x-4.0不会生成.sln项目,还是得用cocos2d-3.5  http://pan.baidu.com/s/1o8RQKtG 密码: cyz7

  • maolins
    2020-06-05 03:48:58

    我装的是cocos2d-x-4.0 https://www.cocos.com/cocos2dx和Python 3.8.3,执行命令后出现,比如"raw_input"未定义,编码不识别,然后我卸载了,重新装了Python 2.7.18 https://www.python.org/downloads/release/python-2718/ 然后就好了

  • 慕瓜2399067
    2017-11-05 16:27:04

    就这个问题好多人遇到了 老师不回答一下吗

  • 慕粉4178113
    2017-06-20 16:56:32

    把python这个先装在和cocos2d一个磁盘下就可以了

  • qq_含泪而笑_03537513
    2016-12-02 23:54:48

    http://img.mukewang.com/58419921000183a606720448.jpg请问这是怎么回事?如何修改?

  • MagainBoss
    2016-08-08 13:33:57

    去掉.py,在这之前要先运行setup.py

  • liu小光
    2016-05-29 10:40:37

    Traceback (most recent call last):

      File "F:\cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin\/cocos.py", line 904, in <module>

        if not _check_python_version():

      File "F:\cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin\/cocos.py", line 868, in _check_python_version

        print(MultiLanguage.get_string('COCOS_PYTHON_VERSION_TIP_FMT') % (major_ver, minor_ver))

      File "F:\cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin\MultiLanguage.py", line 52, in get_string

        fmt = cls.get_instance().get_current_string(key)

      File "F:\cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin\MultiLanguage.py", line 46, in get_instance

        cls.instance = MultiLanguage()

      File "F:\cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin\MultiLanguage.py", line 97, in __init__

        self.cfg_info = json.load(f, encoding='utf-8')

      File "C:\Python34\lib\json\__init__.py", line 265, in load

        return loads(fp.read(),

    UnicodeDecodeError: 'gbk' codec can't decode byte 0x9a in position 29172: illegal multibyte sequence

    然乎是这

  • 芈峰
    2016-05-22 10:11:18

    cd 选着项目路径   再输入cocos new -l lua ProjectName