zhouzypaul / m1-setup

installing popular libraries on apple silicon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

m1-setup

Here are some of the fixes that helped me install popular ML/RL libraries on apple silicon. I'm sharing it here in hopes that it's useful for others as well.

tensorflow:

here's a way to avoid interacting with conda mini-forge: https://stackoverflow.com/questions/65383338/zsh-illegal-hardware-instruction-python-when-installing-tensorflow-on-macbook/68214296#68214296

pytorch:

should just work with pip3 install torch. See: pytorch/pytorch#56333

scikit-learn

usually the issue is I can't build scipy, here's a fix for that: scipy/scipy#13409

procgen

have to change CMakeLists.txt and compile from source, also change the C Compiler to Clang: openai/procgen#69

C Compiler to Clang:

Modify CMkaeLists.txt with the options here: https://stackoverflow.com/questions/7031126/switching-between-gcc-and-clang-llvm-using-cmake

About

installing popular libraries on apple silicon