brew 記得換源,沒換過的可以看找一下之前的文章,有介紹換鏡像源的
1. brew install anaconda
2. 導入環境變量 我用的是zsh 不是bash 是以用了如下指令 /usr/local/anaconda3 是上圖中安裝的路徑
echo 'export PATH="/usr/local/anaconda3/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
如果是用的bash
echo 'export PATH="/usr/local/anaconda3/bin:$PATH"' >> ~/.bash_profile && source ~/.bash_profile
3.結果: