error: command 'gcc' failed with exit status 1 - fairseq/clib/libbleu/libbleu.cpp:9:10: fatal error:

对于mac os Mojave系统来说,先

export CFLAGS='-stdlib=libc++'

python setup.py install

参考:https://github.com/pytorch/fairseq/issues/289

你可能感兴趣的:(python)