How to Solve PIP Install fasttext Error

Error reporting:

error: command '/usr/local/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1:

Solution:

sudo yum install centos-release-scl
sudo yum install scl-utils-build
sudo yum install devtoolset-9
scl enable devtoolset-9 bash
pip install fasttext

Read More: