我尝试了很多次,但仍然不知道如何将 lxml 安装到 python 3.2 中
我正在使用 mac osx 10.6.8,gcc 版本 4.2.1
我使用以下命令安装 lxml
python3.2 setup.py build --static-deps
我总是得到错误
src/lxml/lxml.etree.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
src/lxml/lxml.etree.c:161563: error: ‘x’ undeclared (first use in this function)
src/lxml/lxml.etree.c:161563: error: ‘b’ undeclared (first use in this function)
src/lxml/lxml.etree.c:161565: error: invalid lvalue in assignment
src/lxml/lxml.etree.c:161566: error: syntax error before ‘)’ token
src/lxml/lxml.etree.c:161566: error: syntax error before ‘)’ token
src/lxml/lxml.etree.c:161566: error: syntax error before ‘)’ token
src/lxml/lxml.etree.c:161566: error: syntax error before ‘)’ token
src/lxml/lxml.etree.c:161566: error: syntax error before ‘)’ token
src/lxml/lxml.etree.c: At top level:
src/lxml/lxml.etree.c:161570: error: syntax error before ‘*’ token
src/lxml/lxml.etree.c:161570: error: syntax error before ‘ival’
src/lxml/lxml.etree.c: In function ‘__Pyx_PyInt_FromSize_t’:
src/lxml/lxml.etree.c:161580: error: ‘ival’ undeclared (first use in this function)
src/lxml/lxml.etree.c: At top level:
src/lxml/lxml.etree.c:161584: error: syntax error before ‘__Pyx_PyInt_AsSize_t’
src/lxml/lxml.etree.c:161584: error: syntax error before ‘*’ token
src/lxml/lxml.etree.c: In function ‘__Pyx_PyInt_AsSize_t’:
src/lxml/lxml.etree.c:161585: error: ‘x’ undeclared (first use in this function)
src/lxml/lxml.etree.c:161588: error: syntax error before ‘val’
src/lxml/lxml.etree.c:161593: error: syntax error before ‘val’
lipo: can't figure out the architecture type of: /var/folders /3o/3ozga0d2GXy7aa8oMPgJNU+++TI/-Tmp-//ccr3DFwu.out
error: command 'gcc-4.0' failed with exit status 1
有什么建议么?