Open Nikeshbajaj opened 1 year ago
I managed to get glmnet_python running on my apple M3 Pro by installing gfortran with x86_64 architecture specific homebrew by following this guide: https://sixty-north.com/blog/pyenv-apple-silicon.html
Namely these are the steps that solved it for me:
1) make the command brew86
available according to above blog
2) brew uninstall gfortran
- to uninstall arm gfortran (to make sure the x86_64 version is used for building the .so binary)
3) brew86 install gfortran
(install x86_64 gfortran)
4) delete the committed GLMnet.so file
5) pip uninstall glmnet_python
(uninstall previously installed package)
6) pip install .
... this got me a functional glmnet_python and GLMnet.so on my apple M3 Pro
Hi, I have been using glmnet_python on linux, but couldn't run in on MacOS, even though the conda-forge channel indicates the support of OSX-64 (https://anaconda.org/conda-forge/glmnet_py).
I tried both, installing using conda forge, pip and even tried with compiling from source, yet I keep getting same error.
OSError: glmnet_python/GLMnet.so' (not a mach-o file)
Is there anyway to fix that or only linux is the option?