ターミナルのデフォルトのpython解釈器の変更

1077 ワード

1. .bash_profile open ~/.bash_profile
  2. .bash_profile   , , PATH # Setting PATH for Python 3.5 # The original version is saved in .bash_profile.pysave PATH= "/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}" export PATH
  3. alias python= "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6"
4. .bash_profile
source .bash_profile
主に一言増えたalias python= "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6"