I failed to pip install fasttext in MacOs Monterey 12.3.1 for Python 3.8.9 with the c++
opts.append(cpp_flag(self.compiler))
File "/private/var/folders/ny/k7g_g4h949547ndhld6m1c940000gn/T/pip-install-dsxtn3ke/fasttext/setup.py", line 108, in cpp_flag
raise RuntimeError(
RuntimeError: Unsupported compiler -- at least C++11 support is needed!
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Developer/CommandLineTools/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ny/k7g_g4h949547ndhld6m1c940000gn/T/pip-install-dsxtn3ke/fasttext/setup.py'"'"'; __file__='"'"'/private/var/folders/ny/k7g_g4h949547ndhld6m1c940000gn/T/pip-install-dsxtn3ke/fasttext/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ny/k7g_g4h949547ndhld6m1c940000gn/T/pip-record-pfp6ebbo/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/zhangzhuxin/Library/Python/3.8/include/python3.8/fasttext Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 22.0.4 is available.
You should consider upgrading via the '/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip' command.
I failed to pip install fasttext in MacOs Monterey 12.3.1 for Python 3.8.9 with the c++
My gcc and clang version:
My pip verison: