Hacker News new | ask | show | jobs
by finalfire 854 days ago
I do love Polars, and I constantly use it (I'm a network scientist and usually work with a lot of data). However, it is beyond me why I cannot use it on a M1 Mac. As soon as I import it in python, the latter gets killed with "illegal hardware instruction".
1 comments

You have the Rosetta version of Python installed, which lacks the SIMD instructions we compile Polars with. Reinstalling Python as a native package should fix this.

I have recently added a warning to Polars for this on import, could you confirm you get this warning if (before installing native Python) you update your Polars package?

If for whatever reason you really want to keep using the Rosetta version of Python you should install the polars-lts-cpu package instead.

FWIW polars isn’t the only package that has this problem. And not all of them have so simple a solution.

IIRC pyarrow has some trouble like that, to pick one from the same ecosystem.