Macbook之用brew安装Python

1.

  brew install python

2.If you don't have ~/.bash_profile, add ~/.bash_profile by

  touch ~/.bash_profile

3.Add below text to ~/.bash_profile

  # Homebrew

  export PATH=/usr/local/bin:$PATH

4.

  source ~/.bash_profile

5.test

  which python
  /usr/local/bin/python

posted @ 2016-08-12 11:54  Shiyu_Huang  阅读(4505)  评论(0编辑  收藏  举报