0

试图在我的 linux 机器上的 python 3.4.3 上安装 cffi-1.7.0 源代码。得到以下错误。

$ python setup.py 安装

cc1:错误:无法识别的命令行选项“-Wno-unused-result” cc1:错误:无法识别的命令行选项“-Wno-unused-result”

No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
(If they are about -mno-fused-madd and you are on OS/X 10.8,
see http://stackoverflow.com/questions/22313407/ .)

有人可以帮我解决这个问题吗?

4

1 回答 1

0

通过设置以下选项可以解决该问题。

setenv CFLAGS=-Qunused-arguments

setenv CPPFLAGS -Qunused-arguments

谢谢大家的帮助!

于 2017-07-11T12:52:23.050 回答