我试图在Mac OS X上使用python包(pynbody)并收到以下错误:
>>> pynbody.analysis.halo.center(h1,mode='hyb')
TipsySnap: loading data from main file
creating /var/folders/f6/whg92p6x23q4drf5s563prw40000gn/T/scipy-carljoseph-YozSSU/python27_intermediate/compiler_10a3badd5737329477237726cc2e9ec1
#### ['/usr/bin/clang', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-pipe', '-Os', '-fwrapv', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall', '-Wstrict-prototypes'] #######
Missing compiler_cxx fix for UnixCCompiler
在OS X Mavericks上使用python 2.7.6并在Xcode 5.1.1中安装了clang
:
clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
gcc --version
给了我以下内容:
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
有关如何纠正此Missing compiler_cxx
问题的任何想法?