Python distutils not using correct version of gcc

后端 未结 4 2000
离开以前
离开以前 2020-12-16 05:44

I am trying to compile a package on Mac OSX 10.6.5. The package\'s install script relies on distutils. The problem is that the computer\'s default gcc is version 4.2 (I de

4条回答
  •  清酒与你
    2020-12-16 06:12

    Have you tried setting a custom CC environment variable?

    CC=gcc-4.2 python setup.py build
    

提交回复
热议问题