环境搭建输入cocos.py new Snake -l lua -d g:\imooc无法创建Sanke工程
请问老师这是怎么回事?
请问老师这是怎么回事?
2016-05-20
我装的是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/ 然后就好了
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
然乎是这
举报