ANTsPy is building and running normally on Python 3.12 on all platforms, so I think it's something particular to your environment. What system (computer, OS, python version and source) and antspy ...
Issue with matplotlib installation for python 3.12.4, tried installing by specifying different versions of matplotlib as well. Didn't work. + meson setup C:\Users ...