Install Scikit Learn on Apple Silicon M1

Sukhpal Saini
Oct 10, 2021

--

I spent hours looking for the right answer. Here’s the step-by-step.

  1. Download the miniforge from here. Make sure to download the Miniforge3-MacOSX-arm64 flavor.
  2. Once downloaded, run it using source Miniforge3-MacOSX-arm64.sh . Run through all the installation steps.
  3. 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 :)

--

--

Sukhpal Saini

Full Stack Engineer. Prev at IBM, Apple, Saks. Now building https://engyne.ai to help B2B SaaS get customers with content marketing using AI.