Failure to find FFTW libraries on Mac Big Sur (11.3.1)

Im sure anyone reading this is all too familiar with issues such as mine (given by the number of posts referring to this issue). I am running Mac OS X Big Sur (11.3.1). I have python 3.9.4 installed via pyenv which is installed through home-brew. I have also installed FFTW through home-brew and followed the Mac installation instructions.

export DYLD_LIBRARY_PATH=/usr/local/lib
export LDFLAGS="-L/usr/local/include"
export CFLAGS="-I/usr/local/include"

Unfortunately pyfftw still fails to find the FFTW libraries when installing via pip. Any advice would be greatly appreciated.

Read more here: Source link