- You are using Python on macOS M1 (or M2, etc) and are trying to install a Python library which uses a native library.
- You install the Python library (e.g. using
pip) and the native library (using Homebrew). - You get an error saying that the native library cannot be located even though it's installed using Homebrew.
Example: You are trying to use e.g. pyfluidsynth. You've installed pyfluidsynth with pip, and also ran brew install fluidsynth. However, import fluidsynth still gives an error:
ImportError: Couldn't find the FluidSynth library.