Skip to content

DOC: Update macOS Homebrew libomp instructions for Apple Silicon #31369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

TeckHack76
Copy link

This PR updates the documentation in the "macOS compilers from Homebrew" section to clarify
The installation paths of libomp for different Mac architectures.

  • Adds explanation about the "keg-only" nature of libomp in Homebrew.
  • Distinguishes between Intel-based Macs (using /usr/local/opt/libomp) and Apple Silicon Macs (using /opt/homebrew/opt/libomp).
  • Provides instructions to dynamically get the correct libomp prefix path using brew --prefix libomp.
  • Updates environment variable examples accordingly.

These changes help Apple Silicon users avoid confusion and build errors when installing scikit-learn from source.

Closes #31359

Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 9323962. Link to the linter CI: here

Copy link
Member

@lucyleeow lucyleeow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @TeckHack76 , just a quick comment, could you make lines under 88 characters?

@lesteve
Copy link
Member

lesteve commented May 16, 2025

There was already a PR opened on this very recently #31361. I am going to close this PR, thanks for your understanding @TeckHack76.

@lesteve lesteve closed this May 16, 2025
@TeckHack76
Copy link
Author

Thanks for the feedback and for reviewing the PR! I understand it was a duplicate - no problem at all. I appreciate the guidance and will keep the 88-character line rule in mind for future contributions. I'm looking forward to contributing more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation improvement for macOS Homebrew libomp installation
3 participants