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

相关文章:

  • 2022-12-23
  • 2021-08-27
  • 2021-10-04
  • 2022-12-23
  • 2021-07-23
  • 2021-06-09
  • 2021-08-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-01-05
  • 2022-01-11
  • 2022-12-23
相关资源
相似解决方案