用man python,可以找到
Like the version of Python, the python command can select between 32 and 64-bit execution (when both are available). Use: % defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
将这条语句加到~/.bash_profile,再source ~/.bash_profile就可以了。