scikit-learn for Apple Silicon M1 Macs
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
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-... <https://scikit-learn.org/stable/install.html#installing-on-apple-silicon-m1-...> 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@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@python.org https://mail.python.org/mailman/listinfo/scikit-learn
participants (2)
-
Guillaume Lemaître -
Uroš Poček