Broken installation from pip on Mac M1 (with miniconda)
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 724
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am sorry I'm quite new on GitHub, feel free to correct me or my issue if something's wrong.
I just wanted to highlight that when installing lightfm with `pip install lightfm` on Apple Silicon using an arm64-miniconda environment, the installation fails with the error:
> clang: error: the clang compiler does not support '-march=native'.
I see that in **setup.py** there is an apposite check for Anaconda
```
if "anaconda" not in sys.version.lower():
compile_args.append("-march=native")
```
but it looks like it's not working for miniconda or something.
So I just cloned the repo, switched that compile argument to `-mcpu=apple-m1` and then installation went smoothly.
Hope you can fix it for future noobs like me :)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in setup.py, where the issue identifies the Anaconda check and the -march=native compiler argument. Reproduce pip install lightfm in an arm64-miniconda environment and verify that installation completes without the clang error for Apple Silicon users.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100