clang error: unknown argument: '-mno-fused-madd' (python package installation failure)

后端 未结 14 2354
攒了一身酷
攒了一身酷 2020-11-22 04:43

I get the following error when attempting to install psycopg2 via pip on Mavericks 10.9:

clang: error: unknown argument: \'-mno-fused-madd\' [-W         


        
相关标签:
14条回答
  • 2020-11-22 05:06

    None of the above solutions worked for me. My situation is slightly different. I was trying to install rdiff-backup via homebrew when I got this error message.

    I apparently have both Apple's default python (2.7.5 @ /usr/bin/python) and Homebrew's python (2.7.6 @ /usr/local/Cellar/python/2.7.6/bin/python), but the error was coming from Apple's python.

    To fix the problem, basically I switched the python binaries.

    I did this via sudo:

    • cp /usr/bin/python /usr/bin/python_orig
    • ln -s /usr/local/Cellar/python/2.7.6/bin/python /usr/bin/python

    Then, 'brew install rdiff-backup' succeeded without any errors.

    Finally, I did "mv /usr/bin/python_orig /usr/bin/python" to revert everything back.

    0 讨论(0)
  • 2020-11-22 05:08

    I used homebrew python package. Works well after re-compilling.

    0 讨论(0)
提交回复
热议问题