Skip to content

Instantly share code, notes, and snippets.

@heuermh
Last active April 22, 2023 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heuermh/85fc03fa02feb7db38b9e016b45af089 to your computer and use it in GitHub Desktop.
Save heuermh/85fc03fa02feb7db38b9e016b45af089 to your computer and use it in GitHub Desktop.
samim23/polymath M1 installation walkthrough

Clone samim32/polymath from Github

$ git clone https://github.com/samim23/polymath
$ cd polymath/

Install conda and activate

$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
$ bash Miniconda3-latest-MacOSX-arm64.sh -b -p `pwd`/miniconda
$ source miniconda/bin/activate

Install polymath dependencies

$ conda install -c apple tensorflow-deps
$ python -m pip install -U pip
$ python -m pip install tensorflow-macos
$ python -m pip install tensorflow-metal
$ pip install -r requirements.txt

Fixup broken dependency versions

$ pip install numpy --upgrade
$ pip install numba --upgrade

Include homebrew on library path

$ export DYLD_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_LIBRARY_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment