Reference: MacOS installation pyfasttext error reporting solution_ Kungreye CSDN blog
Mac usage clang
Compile and change the compilation path again to successfully install (both methods are OK).
Solution:
CXX=/usr/bin/clang CC=/usr/bin/clang pip3 install --no-cache pyfasttext