MAC 的python默认版本2.7
把默认版本切换为python3
执行以下命令:
1、在终端输入:open .bash_profile
2、在打开的.bash_profile文件输入:
alias python="/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6"
3、关闭.bash_profile
4、在终端输入:source ~/.bash_profile
MAC 的python默认版本2.7
把默认版本切换为python3
执行以下命令:
1、在终端输入:open .bash_profile
2、在打开的.bash_profile文件输入:
alias python="/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6"
3、关闭.bash_profile
4、在终端输入:source ~/.bash_profile