代码如下,把setup.py拖到终端就显示这个问题
bogon:cocos2d-x-3.2 admin$ /Users/admin/Downloads/cocos2d-x-3.2/setup.py
Setting up cocos2d-x…
->Check environment variable COCOS_CONSOLE_ROOT
->Search for environment variable COCOS_CONSOLE_ROOT…
->COCOS_CONSOLE_ROOT is found : /Users/admin/Downloads/cocos2d-x-3.2/tools/cocos2d-console/bin
->Configuration for Android platform only, you can also skip and manually edit “/Users/admin/.bash_profile”
->Check environment variable NDK_ROOT
->Search for environment variable NDK_ROOT…
->NDK_ROOT not found
->Search for command ndk-build in system…
->Command ndk-build not found