Post

Replies

Boosts

Views

Activity

Reply to Sklearn is unstable on Apple Silicon
NOTE: This answer involves copying dilyb(s) that may not be compatible all versions of sklearn. I highly recommend trying to re-install the packages first. If you continue to fail and have reached a point where you are willing to try anything, the following steps may resolve the issue. I was able to resolve this by manually copying over a copy of the necessary dylib(s) out of a homebrew installation. First: I ran brew install lapack [NOTE: For me, this installed version (3.11), you may end up with a different version after running the command] Then I identified all the relevant files in of /opt/homebrew/Cellar/lapack/3.11/lib/*: liblapacke.dylib libblas.3.11.0.dylib libblas.3.dylib libblas.dylib liblapack.3.11.0.dylib liblapack.3.dylib liblapack.dylib liblapacke.3.11.0.dylib liblapacke.3.dylib Identify a search path that I all my python packages would search. I'm using miniconda for my python environment management, for me it was: ~/miniconda3/envs/maxEnt/lib/. Step 1: Delete all existing files with a matching name in this lib folder. Step 2: Copy the files referenced above. Step 3: Update all the symlinks (aliases) in these files [.dylib points to 3.11.0.dylib; .3.dylib points to 3.11.0.dylib].
Oct ’23