os x 10.5 上的 easy_install lxml 困难

发布于 2025-01-05 19:15:12 字数 12632 浏览 0 评论 0原文

我正在尝试在我的计算机上安装 lxml 但遇到困难。有人可以帮忙吗?我提供了当我尝试执行“easy_install lxml”时得到的终端输出。我正在运行 Mac OS X 10.5 和 Python 版本 2.7.2。谢谢!:

Macintosh-8:~ momdad$ easy_install lxml
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.3
Downloading http://lxml.de/files/lxml-2.3.3.tgz
Processing lxml-2.3.3.tgz
Running lxml-2.3.3/setup.py -q bdist_egg --dist-dir /var/folders/NA/NA4jZIQeGBihRLry0Fm6v++++TI/-Tmp-/easy_install-CAOPgi/lxml-2.3.3/egg-dist-tmp-SOj-c0
Building lxml version 2.3.3.
Building without Cython.
Using build configuration of libxslt 1.1.12
Building against libxml2/libxslt in the following directory: /usr/lib
src/lxml/lxml.etree.c:276:31: error: libxml/schematron.h: No such file or directory
src/lxml/lxml.etree.c:276:31: error: libxml/schematron.h: No such file or directory
src/lxml/lxml.etree.c:2007: error: syntax error before ‘xmlSchemaSAXPlugStruct’
src/lxml/lxml.etree.c:2009: error: syntax error before ‘}’ token
src/lxml/lxml.etree.c:2007: error: syntax error before ‘xmlSchemaSAXPlugStruct’
src/lxml/lxml.etree.c:2009: error: syntax error before ‘}’ token
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_14_ParserContext_1__dealloc__’:
src/lxml/lxml.etree.c:73868: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext__copy’:
src/lxml/lxml.etree.c:73962: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext_prepare’:
src/lxml/lxml.etree.c:74266: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext_cleanup’:
src/lxml/lxml.etree.c:74324: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__handleParseResult’:
src/lxml/lxml.etree.c:75040: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:75481: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:75494: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_14_ParserContext_1__dealloc__’:
src/lxml/lxml.etree.c:73868: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext__copy’:
src/lxml/lxml.etree.c:73962: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext_prepare’:
src/lxml/lxml.etree.c:74266: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext_cleanup’:
src/lxml/lxml.etree.c:74324: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__handleParseResult’:
src/lxml/lxml.etree.c:75040: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:75481: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:75494: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9iterparse__read_more_events’:
src/lxml/lxml.etree.c:99050: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9iterparse__read_more_events’:
src/lxml/lxml.etree.c:99050: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9XMLSchema__newSaxValidator’:
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133263: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133298: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_30_ParserSchemaValidationContext___cinit__’:
src/lxml/lxml.etree.c:133349: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133358: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133367: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_30_ParserSchemaValidationContext_1__dealloc__’:
src/lxml/lxml.etree.c:133395: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133404: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133414: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_copy’:
src/lxml/lxml.etree.c:133448: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_inject_default_attributes’:
src/lxml/lxml.etree.c:133508: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133531: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_connect’:
src/lxml/lxml.etree.c:133578: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133588: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133588: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133597: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133624: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133633: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133648: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133648: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_disconnect’:
src/lxml/lxml.etree.c:133681: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133691: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133700: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_isvalid’:
src/lxml/lxml.etree.c:133729: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133749: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9XMLSchema__newSaxValidator’:
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133263: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133298: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_30_ParserSchemaValidationContext___cinit__’:
src/lxml/lxml.etree.c:133349: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133358: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133367: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_30_ParserSchemaValidationContext_1__dealloc__’:
src/lxml/lxml.etree.c:133395: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133404: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133414: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_copy’:
src/lxml/lxml.etree.c:133448: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_inject_default_attributes’:
src/lxml/lxml.etree.c:133508: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133531: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_connect’:
src/lxml/lxml.etree.c:133578: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133588: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133588: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133597: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133624: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133633: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133648: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133648: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_disconnect’:
src/lxml/lxml.etree.c:133681: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133691: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133700: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_isvalid’:
src/lxml/lxml.etree.c:133729: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133749: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_new_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149004: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149005: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_dealloc_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_traverse_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149030: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149031: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_clear_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149039: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149040: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: At top level:
src/lxml/lxml.etree.c:149150: error: invalid application of ‘sizeof’ to incomplete type ‘struct __pyx_obj_4lxml_5etree__ParserSchemaValidationContext’ 
src/lxml/lxml.etree.c: In function ‘__pyx_tp_new_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149004: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149005: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_dealloc_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_traverse_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149030: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149031: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_clear_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149039: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149040: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: At top level:
src/lxml/lxml.etree.c:149150: error: invalid application of ‘sizeof’ to incomplete type ‘struct __pyx_obj_4lxml_5etree__ParserSchemaValidationContext’ 
lipo: can't open input file: /var/folders/NA/NA4jZIQeGBihRLry0Fm6v++++TI/-Tmp-//ccpgwsWT.out (No such file or directory)
error: Setup script exited with error: command 'gcc' failed with exit status 1

I am trying to install lxml on my computer but am having difficulties. Can anyone help? I have provided the terminal output I am getting when I try to execute 'easy_install lxml'. I am running Mac OS X 10.5 and Python version 2.7.2. Thanks!:

Macintosh-8:~ momdad$ easy_install lxml
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.3
Downloading http://lxml.de/files/lxml-2.3.3.tgz
Processing lxml-2.3.3.tgz
Running lxml-2.3.3/setup.py -q bdist_egg --dist-dir /var/folders/NA/NA4jZIQeGBihRLry0Fm6v++++TI/-Tmp-/easy_install-CAOPgi/lxml-2.3.3/egg-dist-tmp-SOj-c0
Building lxml version 2.3.3.
Building without Cython.
Using build configuration of libxslt 1.1.12
Building against libxml2/libxslt in the following directory: /usr/lib
src/lxml/lxml.etree.c:276:31: error: libxml/schematron.h: No such file or directory
src/lxml/lxml.etree.c:276:31: error: libxml/schematron.h: No such file or directory
src/lxml/lxml.etree.c:2007: error: syntax error before ‘xmlSchemaSAXPlugStruct’
src/lxml/lxml.etree.c:2009: error: syntax error before ‘}’ token
src/lxml/lxml.etree.c:2007: error: syntax error before ‘xmlSchemaSAXPlugStruct’
src/lxml/lxml.etree.c:2009: error: syntax error before ‘}’ token
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_14_ParserContext_1__dealloc__’:
src/lxml/lxml.etree.c:73868: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext__copy’:
src/lxml/lxml.etree.c:73962: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext_prepare’:
src/lxml/lxml.etree.c:74266: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext_cleanup’:
src/lxml/lxml.etree.c:74324: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__handleParseResult’:
src/lxml/lxml.etree.c:75040: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:75481: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:75494: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_14_ParserContext_1__dealloc__’:
src/lxml/lxml.etree.c:73868: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext__copy’:
src/lxml/lxml.etree.c:73962: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext_prepare’:
src/lxml/lxml.etree.c:74266: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_14_ParserContext_cleanup’:
src/lxml/lxml.etree.c:74324: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__handleParseResult’:
src/lxml/lxml.etree.c:75040: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:75481: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:75494: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9iterparse__read_more_events’:
src/lxml/lxml.etree.c:99050: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9iterparse__read_more_events’:
src/lxml/lxml.etree.c:99050: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9XMLSchema__newSaxValidator’:
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133263: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133298: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_30_ParserSchemaValidationContext___cinit__’:
src/lxml/lxml.etree.c:133349: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133358: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133367: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_30_ParserSchemaValidationContext_1__dealloc__’:
src/lxml/lxml.etree.c:133395: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133404: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133414: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_copy’:
src/lxml/lxml.etree.c:133448: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_inject_default_attributes’:
src/lxml/lxml.etree.c:133508: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133531: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_connect’:
src/lxml/lxml.etree.c:133578: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133588: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133588: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133597: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133624: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133633: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133648: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133648: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_disconnect’:
src/lxml/lxml.etree.c:133681: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133691: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133700: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_isvalid’:
src/lxml/lxml.etree.c:133729: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133749: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_9XMLSchema__newSaxValidator’:
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133262: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133263: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133298: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_30_ParserSchemaValidationContext___cinit__’:
src/lxml/lxml.etree.c:133349: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133358: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133367: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_30_ParserSchemaValidationContext_1__dealloc__’:
src/lxml/lxml.etree.c:133395: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133404: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133414: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_copy’:
src/lxml/lxml.etree.c:133448: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133471: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_inject_default_attributes’:
src/lxml/lxml.etree.c:133508: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133531: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_connect’:
src/lxml/lxml.etree.c:133578: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133588: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133588: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133597: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133624: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133633: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133648: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133648: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_disconnect’:
src/lxml/lxml.etree.c:133681: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133691: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133700: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_isvalid’:
src/lxml/lxml.etree.c:133729: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:133749: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_new_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149004: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149005: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_dealloc_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_traverse_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149030: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149031: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_clear_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149039: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149040: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: At top level:
src/lxml/lxml.etree.c:149150: error: invalid application of ‘sizeof’ to incomplete type ‘struct __pyx_obj_4lxml_5etree__ParserSchemaValidationContext’ 
src/lxml/lxml.etree.c: In function ‘__pyx_tp_new_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149004: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149005: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_dealloc_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149023: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_traverse_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149030: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149031: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: In function ‘__pyx_tp_clear_4lxml_5etree__ParserSchemaValidationContext’:
src/lxml/lxml.etree.c:149039: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c:149040: error: dereferencing pointer to incomplete type
src/lxml/lxml.etree.c: At top level:
src/lxml/lxml.etree.c:149150: error: invalid application of ‘sizeof’ to incomplete type ‘struct __pyx_obj_4lxml_5etree__ParserSchemaValidationContext’ 
lipo: can't open input file: /var/folders/NA/NA4jZIQeGBihRLry0Fm6v++++TI/-Tmp-//ccpgwsWT.out (No such file or directory)
error: Setup script exited with error: command 'gcc' failed with exit status 1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流年已逝 2025-01-12 19:15:12

我无法仅通过查看错误来告诉您根本原因,但您可以先尝试一些简单的操作:

  • 以超级用户身份运行安装 (sudo easy_install lxml),如果您没有这样做的话还没有。
  • 尝试使用 pip 进行安装。我很幸运地使用 pip 在 OSX 10.6 和 10.7 上安装 lxml,这是值得的。如果您还没有 pip,只需执行 sudo easy_install pip 即可。然后执行sudo pip install lxml

如果这不起作用,请告诉我们。

编辑:我相信 easy_install 和 pip 都使用相同的软件包存储库,但值得一试。

I couldn't tell you the root cause just by looking at the error, but there are a couple of easy things you could try first:

  • Run the installation as superuser (sudo easy_install lxml), if you haven't already.
  • Try using pip for the install. I've had good luck using pip to install lxml on OSX 10.6 and 10.7, for what it's worth. If you don't have pip already, just do sudo easy_install pip. Then do sudo pip install lxml.

Let us know if that doesn't work.

Edit: I believe easy_install and pip both use the same package repos, but it's worth a shot.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文