I am trying to install the reticulate package on my Mac and it depends on the png package, which in turn depends on libpng. I installed libpng with brew but the png package fails due to a missing libpng-config:
/bin/sh: libpng-config: command not found
However I have this in /opt/homebrew/bin/libpng-config:
which libpng-config
/opt/homebrew/bin/libpng-config
I found this that specifies the need for libpng-dev but I have no idea how to install that on my Mac. Any help is appreciated.