[scikit-learn] scikit-learn for Apple Silicon M1 Macs

Guillaume Lemaître g.lemaitre58 at gmail.com
Mon Aug 2 06:07:18 EDT 2021


There is no currently available wheel in PyPI because NumPy and SciPy does not provide wheels as well:
https://github.com/scikit-learn/scikit-learn/issues/19137 <https://github.com/scikit-learn/scikit-learn/issues/19137>


However, one can use `miniforge` or `mambaforge` to install binaries without the need to build from source:
https://scikit-learn.org/stable/install.html#installing-on-apple-silicon-m1-hardware <https://scikit-learn.org/stable/install.html#installing-on-apple-silicon-m1-hardware>

NB: I am currently developing scikit-learn with a M1 using `mambaforge` and the process is pretty smooth.
--
Guillaume Lemaitre
Scikit-learn @ Inria Foundation
https://glemaitre.github.io/

> On 2 Aug 2021, at 11:03, Uroš Poček <uros.pocek at gmail.com> wrote:
> 
> Hello, I am a student and ML programmer and I have been using scikit-learn library for python for a few years now on my PC, but recently I switched to M1 iMac and when I tried to transfer my projects and pip install used libraries in them I ran in bunch of issues. Long story short I was able to successfully install all ML libraries on my new Mac(tensorflow, numpy, matplotlib, pandas, torch, …) except scikit-learn (sklearn)! When can we expect to see version of this library that can be installed using pip on M1 Macs and  that can be used without any issues?
> 
> Thank you all in advance.
> Uros Pocek
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scikit-learn/attachments/20210802/fb8fe8b3/attachment.html>


More information about the scikit-learn mailing list