首页 新闻 会员 周边

Cocos命令出错

0
悬赏园豆:15 [已关闭问题] 关闭于 2020-09-14 18:47

Windows7 cmd输入cocos出现以下错误:

C:\cocos2d-x-4.0\tools\cocos2d-console\bin/cocos.py:463: SyntaxWarning: "is not
" with a literal. Did you mean "!="?
if cls.get_cocos2d_mode() is not "distro":
Traceback (most recent call last):
File "C:\cocos2d-x-4.0\tools\cocos2d-console\bin/cocos.py", line 1056, in <mo
dule>
if not _check_python_version():
File "C:\cocos2d-x-4.0\tools\cocos2d-console\bin/cocos.py", line 984, in che
ck_python_version
print(MultiLanguage.get_string('COCOS_PYTHON_VERSION_TIP_FMT') % (major_ver,
minor_ver))
File "C:\cocos2d-x-4.0\tools\cocos2d-console\bin\MultiLanguage.py", line 52, i
n get_string
fmt = cls.get_instance().get_current_string(key)
File "C:\cocos2d-x-4.0\tools\cocos2d-console\bin\MultiLanguage.py", line 46, i
n get_instance
cls.instance = MultiLanguage()
File "C:\cocos2d-x-4.0\tools\cocos2d-console\bin\MultiLanguage.py", line 97, i
n init
self.cfg_info = json.load(f, encoding='utf-8')
File "C:\Python38\lib\json_init
.py", line 293, in load
return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 31415: illega
l multibyte sequence

_yiwei的主页 _yiwei | 初学一级 | 园豆:172
提问于:2020-09-11 20:58
< >
分享
所有回答(1)
0

我重新安装了Cocos2d-x,问题解决了

_yiwei | 园豆:172 (初学一级) | 2020-09-14 18:47
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册