Macbook之用brew安裝Python

1.python

  brew install pythonbash

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

  touch ~/.bash_profilefile

3.Add below text to ~/.bash_profiletouch

  # Homebrew

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

4.

  source ~/.bash_profile

5.test

  which python  /usr/local/bin/python

相關文章
相關標籤/搜索