DEV Community

Abhishek
Abhishek

Posted on

Mac OS Big Sur CPPFLAGS and LDFLAGS

While building python packages, dependency development libraries are required. We can install the libraries from homebrew were not found by pip for some reason.
Export the path used by homebrew for "include" and "lib".

export CPPFLAGS=-I/opt/homebrew/include
export LDFLAGS=-L/opt/homebrew/lib
Enter fullscreen mode Exit fullscreen mode

Top comments (0)