分类 MAC OS 下的文章

MAC OS 10.8.3 因为系统是64位,安装后import wx 提示如下错误:

ImportError: /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/core.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)

设置如下即可正常:

在当前用户目录 vim ~/.profile

加入

export VERSIONERPYTHONPREFER32BIT=yes

或者临时在当前终端输入:

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

在Finder 界面标题栏显示全路径

defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder 窗口显示全路径

defaults delete com.apple.finder _FXShowPosixPathInTitle;killall Finder 删除以显示默认

终端显示和linux下面类似的前缀:
vim ~/.profile
加入 export PS1="[u@h W]$"
这样在终端里面就不是一坨老长的了