无法使用python 2.7在osx 10.6中安装lxml

时间:2014-08-12 16:11:29

标签: python-2.7 lxml osx-snow-leopard

我使用Python 2.7尝试安装lxml。我尝试过使用pip和easy_install。我有自制软件和xcode 4.2。当我尝试使用pip安装时出现此错误

unable to execute gcc-4.2: No such file or directory
error: command 'gcc-4.2' failed with exit status 1

当我尝试使用easy_install时,我得到了

unable to execute gcc-4.2: No such file or directory
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1

然而,当我这样做的时候     gcc -v

Using built-in specs.
Target: i686-apple-darwin10
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/src/configure --disable-        
checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man - -  
enable-      languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform- 
name=/^[cg][^.-   ]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 - - 
enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/dst-  
llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin10- --host=x86_64-apple-
darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)

所以我有gcc 4.2,但它有问题。

0 个答案:

没有答案