Cannot use cocos console commands

I don’t understand why I can’t run any cocos console commands.

I’m using a windows machine with git bash for ‘terminal’, and I have python 2.7.11

I have python in my PATH and ran python from the terminal to do the setup, and I can also use cocos from the terminal. I can even cocos something --help and get the info message. But when I try doing something with a project, I get a python bad access error message.

Here is the message I get why I try running cocos new -l js test

/c/Users/Me/Documents/Cocos2d_projects/cocos2d-x-3.11.1/cocos2d-x-3.11.1/tools/cocos2d-console/bin/cocos: line 6: /c/Python27/python: Bad address

Has anyone ran into a similar issue or know how to resolve this?

I’m using 2.7.9 without problems. I haven’t tried 2.7.11 yet

I still get the same error message, bad address

hmm, I’m not sure. I have a working Windows 7 setup and it is working fine for me.

I tried with some of the additional commands you used, now I get 4800 aborted (core dumped). Does this mean I should add cocos_console_bin to PATH?

Me@MyPC MINGW64 ~/Documents/Cocos2d_projects
$ cocos new test -p com.test -l js -d
/c/Users/Me/Documents/Cocos2d_projects/cocos2d-x-3.11.1/cocos2d-x-3.11.1/tools/cocos2d-console/bin/cocos: line 6: 4800 Aborted (core dumped) python “$COCOS_CONSOLE_BIN_DIRECTORY/cocos.py” “$@”