r/learnpython • u/tthkbw • 13d ago
numpy build fails using uv and homebrew
I am running macOS 27.2 with homebrew and uv. Python 3.15. numpy is a requirement for the project. When uv tries to build numpy 2.5.1, it fails complaining about not finding "atomic.h", "ostream.h" and "cstddef.h".
I know this is some kind of setup problem with the c++ compiler, but can't figure it out. I have installed Xcode command line tools and pkgconf.
Any suggestions?
4
Upvotes
View all comments
Show parent comment
1
u/tthkbw 13d ago
I had just ported this project to 3.15 to take advantage of the lazy imports because I wanted to optimize startup time. I chose the 3.15 dependency for my own reasons.