I'm writing a C extension for a python application, and need to test python-specific C code. To do so I need to import Python.h into my C files, but for the life of me I haven't been able to do that. Most tutorials suggest something along the lines of sudo apt-get python-dev, but my system doesn't have apt-get, and even if it did I think it'd be better to have the dev files in my virtualenv.
Any idea how to get Python.h into my virtualenv?
find /opt/homebrew/Cellar -name Python.h
for macOS Ventura 13.4.1. I did not have a/usr/local/Cellar/
directory. – Lauer