【原創】MAC自帶python是2.7,如何切換到python3

一、先找到你的python3的安裝路徑,個人安裝路徑以下: /usr/local/bin/python3.7 二、修改系統配置文件~/.bash_profile ,執行: open ~/.bash_profile 最後一行添加: alias python="/usr/local/bin/python3.7" 四、從新加載系統配置文件: source ~/.bash_profile 五、確認當前版本
相關文章
相關標籤/搜索