Help with Command Prompt

I’m getting the following error after trying the cocos command in windows 10 command prompt, can someone help me resolve this, I checked out " Cocos2dx Setup.py" and went to advanced settings to change the PATH$ variable to C:\Users\paulz\Desktop\cocos2d-x\tools\cocos2d-console\bin but it doesn’t work:

C:\Users\paulz\Desktop\cocos2d-x\tools\cocos2d-console\bin>cocos
C:\Users\paulz\Desktop\cocos2d-x\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:\Users\paulz\Desktop\cocos2d-x\tools\cocos2d-console\bin\cocos.py”, line 1053, in
DataStatistic.show_stat_agreement(skip_agree_value)
File “C:\Users\paulz\Desktop\cocos2d-x\tools\cocos2d-console\bin\cocos.py”, line 346, in show_stat_agreement
input_value = raw_input(MultiLanguage.get_string(‘COCOS_AGREEMENT’))
NameError: name ‘raw_input’ is not defined

  1. What version of cocos2d-x are you using?

  2. What version of Python are you using? You need to be at 2.7. 3.x isn’t supported.

I am using 4.0, I changed my python version to 2.7.18 and it works

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.