用于Python 2.5.6和osx 10.7.3的lxml

用于Python 2.5.6和osx 10.7.3的lxml,python,macos,lxml,Python,Macos,Lxml,我想安装lxml,但找不到成功的方法 尝试 使用brew等 我不知道怎么了 我的错误: STATIC_DEPS=true pip install lxml STATIC_DEPS=true pip install --install-option="--libxml2-version=2.7.8" lxml threads.c:在函数“xmlCleanupThreads”中: threads.c:918:错误:在“{”标记之前应该有表达式 生成[2]:***[threads.lo]错误1 ma

我想安装lxml,但找不到成功的方法 尝试

使用brew等

我不知道怎么了

我的错误:

STATIC_DEPS=true pip install lxml
STATIC_DEPS=true pip install --install-option="--libxml2-version=2.7.8" lxml
threads.c:在函数“xmlCleanupThreads”中:
threads.c:918:错误:在“{”标记之前应该有表达式
生成[2]:***[threads.lo]错误1
make[2]:***等待未完成的工作。。。。
生成[1]:***[all recursive]错误1
make:**[全部]错误2
回溯(最近一次呼叫最后一次):
文件“/usr/bin/easy_install-2.7”,第10行,在
加载入口点('setuptools==0.6c12dev-r85381','console\u scripts','easy\u install')()

这就是我的工作原理:

threads.c: In function 'xmlCleanupThreads':
threads.c:918: error: expected expression before '{' token
make[2]: *** [threads.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Traceback (most recent call last):
  File "/usr/bin/easy_install-2.7", line 10, in <module>
    load_entry_point('setuptools==0.6c12dev-r85381', 'console_scripts', 'easy_install')()
这是:

mkvirtualenv lxml
pip install --no-install --build-dir="./build" lxml
cd build/lxml/
python setup.py build --static-deps --libxml2-version=2.7.8 --libxslt-version=1.1.27
cd -
pip install --no-download --build-dir="./build" lxml

通常我只是使用
pip install lxml安装,到目前为止没有问题。

这就是我的工作原理:

threads.c: In function 'xmlCleanupThreads':
threads.c:918: error: expected expression before '{' token
make[2]: *** [threads.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Traceback (most recent call last):
  File "/usr/bin/easy_install-2.7", line 10, in <module>
    load_entry_point('setuptools==0.6c12dev-r85381', 'console_scripts', 'easy_install')()
这是:

mkvirtualenv lxml
pip install --no-install --build-dir="./build" lxml
cd build/lxml/
python setup.py build --static-deps --libxml2-version=2.7.8 --libxslt-version=1.1.27
cd -
pip install --no-download --build-dir="./build" lxml
通常我只是用
pip安装lxml
安装,到目前为止没有问题