Skip to content

Latest commit

 

History

History
99 lines (64 loc) · 1.68 KB

setup-mac.md

File metadata and controls

99 lines (64 loc) · 1.68 KB

macOS

Shell scripts are bash

Setup

Install XQuartz

Install the Apple Command Line Tools:

xcode-select --install

Homebrew

Install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install packages:

brew install wget curl

Anaconda

Install Anaconda 3. To get the default working environment (recommended), answer yes to all questions when asked:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
chmod +x Miniconda3-latest-MacOSX-x86_64.sh
bash Miniconda3-latest-MacOSX-x86_64.sh

IMPORTANT: At this point close and re-open your current shell for changes to take effect.

Do not activate the base environment by default (optional):

conda config --set auto_activate_base false

Create a tropess Anaconda environment:

conda create --prefix ~/.conda/envs/tropess

Update .bash_profile to activate the tropess environment by default when you login into bash (optional):

cat << EOT >> ~/.bash_profile
# Activate the tropess environment by default when you login
conda activate tropess
EOT

Anaconda Packages

Install the following Anaconda packages:

Python

conda install --channel anaconda python pip

Test:

python --version

Anaconda Environments

Just for your information

To activate:

conda activate tropess

To deactivate:

conda deactivate

If you ever decide to remove it:

conda env remove --name tropess