OS X從系統自帶python改為Homebrew版python
# 將Homebrew版python將要放的路徑加入到環境變數
export PATH =/usr/local/bin:$PATH
# 使修改後的環境變數生效
source ~/.bash_profile
# 再判斷一下當前的python是哪個python
which python
# 如果顯示的是/usr/local/bin/python(Homebrew版)而不是/usr/bin/python(系統自帶),則算成功
之前用系統自帶python時,
當安裝好Homebrew版的python之後,