Python build using wrong version of GCC on OS X

后端 未结 3 1538
忘了有多久
忘了有多久 2020-12-05 16:37

I am attempting to build the python package pycrypto. OS X has gcc-4.2 installed and not gcc-4.0, but python continues to attempt to use gcc-4.0. How can I get it to use gc

3条回答
  •  -上瘾入骨i
    2020-12-05 17:25

    BTW, this is a distutils problem, Python itself doesn't compile anything.

    As you've discovered, you can override the compiler with the CC environment variable. You can override the linker used with the CXX environment variable. I would also like to know why distutils acts this way, but so it does.

提交回复
热议问题