Install Scikit Learn on Apple Silicon M1
Oct 10, 2021
I spent hours looking for the right answer. Here’s the step-by-step.
- Download the miniforge from here. Make sure to download the Miniforge3-MacOSX-arm64 flavor.
- Once downloaded, run it using
source Miniforge3-MacOSX-arm64.sh
. Run through all the installation steps. - To be able to use conda, you need to run this to add to PATH:
export PATH=~/miniforge3/bin:$PATH
You should now be able to do which conda
to see that it’s working correctly.
4. Set up conda for whichever shell you’re using. For example, if you’re using bash, run conda init bash
. If you’re using zsh, run conda init zsh
.
5. Congratulations, now you can install the scikit-learn package with: conda install scikit-learn
Cheers :)