Run the following command on your terminal to install Homebrew. Homebrew is a package manager for Macs and is used to install useful development tools and software.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Run
brew install --cask anacondato install Anaconda - Run
echo 'export PATH=/usr/local/anaconda3/bin:$PATH' >> ~/.zshrcfrom your terminal - Also run
echo 'export PATH=/opt/homebrew/anaconda3/bin:$PATH' >> ~/.zshrcfrom your terminal - Run
source ~/.zshrcfrom your terminal - Type
condato ensure that anaconda linked correctly.
echo 'export PATH=/usr/local/anaconda3/bin:$PATH' >> ~/.bash_profileecho 'export PATH=/opt/homebrew/anaconda3/bin:$PATH' >> ~/.bash_profilesource ~/.bash_profile
If you installed Anaconda for only this user, run the following:
echo 'export PATH=/Users/$USER/anaconda3/bin:$PATH' >> ~/.zshrcecho 'export PATH=/opt/homebrew/anaconda3/bin:$PATH' >> ~/.zshrcsource ~/.zshrc
If you installed Anaconda for all users on your computer, then run the following:
echo 'export PATH=/opt/anaconda3/bin:$PATH' >> ~/.zshrcsource ~/.zshrc
Thank you for the article!
I would also like to add that if you are using ZSH as your shell or are a Mac user with an M1, M2 chip, etc.
You need to execute the following commands (assuming that Homebrew is pre-installed):
brew install --cask anacondaconda init zshsource ~/.zshrcThen you can execute the command to update conda:
conda update conda