fairseq 安装报错
问题
Running setup.py install for fairseq ... error
ERROR: Command errored out with exit status 1:
command: /Users/superman/anaconda/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3h/3v_dnwl95tl9k9swbcfrm1fc0000gn/T/pip-install-r2wmqr5b/fairseq/setup.py'"'"'; file='"'"'/private/var/folders/3h/3v_dnwl95tl9k9swbcfrm1fc0000gn/T/pip-install-r2wmqr5b/fairseq/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/3h/3v_dnwl95tl9k9swbcfrm1fc0000gn/T/pip-record-w8a267u9/install-record.txt --single-version-externally-managed --compile
解决
apt-get update && apt-get install build-essential