question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native wheels for the macos/arm64 platform (Apple Silicon M1 hardware)

See original GitHub issue

Making this happen depends on the resolution of the following upstream issues:

  • numpy/numpy#17807 (building numpy in native mode on M1)
  • scipy/scipy#13364 (segfault on scipy.integrated on M1 with openblas and gfortran from homebrew)
  • public release of scipy with a wheel for the macos/arm64 platform
  • joerick/cibuildwheel#473 (comment) discussion on how to add support for building M1 native wheels for Python packages on public CI (e.g. github actions, azure pipelines and co).
  • update the Wheel build github actions workflow in the scikit-learn repo to enable building for the new platform using cross-compilation on intel macos executors.

Note: macos/arm64 is also known as macos/aarch64.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:55
  • Comments:34 (6 by maintainers)

github_iconTop GitHub Comments

64reactions
appleseedexmcommented, Oct 8, 2021

Hi.

I found this fix that seems to install scikit without the need of using conda […]

This lead me on the right path, however I had to install nightly scipy instead. Afterwards I was able to install scikit-learn 1.0.0 without a problem:

# SciPy:
python -m pip install --no-cache --no-use-pep517 pythran cython pybind11 gast"==0.4.0"
pyenv rehash
python -m pip install --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy

# Scikit-Learn
python -m pip install --no-use-pep517 scikit-learn"==1.0.0"
40reactions
anirudh-gcommented, Sep 2, 2021

Hi All. Is there any update on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Python native on M1 Max is gre… - Apple Developer
I just got my new MacBook Pro with M1 Max chip and am setting up Python. I've tried several combinational settings to test...
Read more >
Dan Keeley on Twitter: "Very handy time, anyone trying to get scikit ...
Very handy time, anyone trying to get scikit-learn working on an M1 macbook, ... Native wheels for the macos/arm64 platform (Apple Silicon M1...
Read more >
Installing scipy and scikit-learn on apple m1 - Stack Overflow
Pip downloaded the source from Pipy, then built the wheel targeting MacOS X 12.0, and arm64 (apple silicon): scikit_learn-1.0.1-cp38-cp38- ...
Read more >
How we streamlined Apple M1 Support with self-hosted ...
This would allow early adopters of Apple hardware based on the ... who owned an Apple Silicon machine, manually building release wheels.
Read more >
A Python Data Scientist's Guide to the Apple Silicon Transition
There are currently three options for running Python on the M1: Use pyenv to create environments and pip to install native macOS ARM64...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found