Skip to content

Instantly share code, notes, and snippets.

@forrestfwilliams
Created December 18, 2024 13:40
Show Gist options
  • Select an option

  • Save forrestfwilliams/ec7bbdc4a7624c8db0d154c3d46a4a44 to your computer and use it in GitHub Desktop.

Select an option

Save forrestfwilliams/ec7bbdc4a7624c8db0d154c3d46a4a44 to your computer and use it in GitHub Desktop.
Install instructions for ISCE2 on an Apple Silicon Mac

ISCE2 Apple Silicon Install

An Apple Silicon ISCE2 install can be done, but it is a bit tricky. In short, the key is to:

Install ISCE2 via conda/mamba within an osx-64 environment

The osx-64 component is key because as of late 2024, ISCE2 does not distribute an arm-based build via condaforge.

Note that ISCE2 may be slower than you expect because it has to run via the Rosetta 2 translation tool.

Step 1: Install miniforge

curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh

Step 2: Create an osx-64 conda environment

Make sure to swap YOUR_ENV_NAME_HERE with the name of the environment you want

export CENV_NAME=YOUR_ENV_NAME_HERE
export CONDA_SUBDIR=osx-64
export OSX_SDK_DIR=/Library/Developer/CommandLineTools/SDKs
conda create -y -n $CENV_NAME
conda activate $CENV_NAME
conda config --env --set subdir osx-64

Step 3: Install ISCE2

You can either install ISCE2 directly:

mamba install -c conda-forge isce2

Or as part of an environment file (note the use of update instead of install):

mamba env update --name $CENV_NAME -f environment.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment