Python 2.6 安装wxPython后提示"64.....32"错误解决办法
ImportError: /usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see “man Python” for running in 32-bit mode)
要解决这个问题,只需要在 ~/.bash_profile 加入一行代码就行:
export VERSIONER_PYTHON_PREFER_32_BIT=yes
另外一种解决方案是执行以下命令:
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes