mac设置默认python为python3

1.首先打开终端 2.打开配置文件,输入open ~/.bash_profile 3. 在配置文件中,写入python的外部环境变量(后面为python的位置,本人的版本是3.6)  export PATH=${PATH}:/Applications/anaconda3/bin/python.app 4.重命名python alias python="/Applications/anaconda3
相关文章
相关标签/搜索