clang error when installing pygresql under Mac OS

别说谁变了你拦得住时间么 提交于 2019-12-06 05:15:08
Cadu

I was able to compile the module by editing the modules's setup.py

Find the line

extra_compile_args = ....

It's a list of extra compile arguments to pass to clang. One of the extra arguments will be -Werror, which means "treat all warnings as ERRORS". And as you know an error will abort compilation.

Remove that line, and run python3 setup.py build again and you'll see the same line appears, but this time as a warning, and everything goes okay!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!