- install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" - install zsh
brew install zsh - install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - ensure zsh is default bash
brew install coreutils- install pyenv (python version manager) by following these instructions https://github.com/pyenv/pyenv#basic-github-checkout
- NB. Apple chip laptops only, need to run do
softwareupdate --install-rosetta; installs software so older archecture packages can run. - installing anaconda
brew cask install anaconda - conda won't work until .zsh has conda added to the path,
conda init zshdoes this but needs to be run from conda's executable (because conda not in path) For old macs:/usr/local/anaconda3/bin/conda init zshFor new macs:/opt/homebrew/anaconda3/bin/conda init zsh - Disable the base environment for conda
conda config --set auto_activate_base falseNote: not recomended to run base anaconda anvironment as per SO answers below.
https://stackoverflow.com/questions/58044214/installing-anaconda-with-pyenv-unable-to-configure-virtual-environment https://stackoverflow.com/questions/57640272/how-can-i-install-anaconda-aside-an-existing-pyenv-installation-on-osx https://www.anaconda.com/blog/using-pip-in-a-conda-environment
Specific pitfalls: