1

Я пробовал много раз, но до сих пор не могу понять, как установить 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

Какие-либо предложения?

0