How do you install lxml on OS X Leopard without using MacPorts or Fink?

后端 未结 15 2329
礼貌的吻别
礼貌的吻别 2020-11-30 20:23

I\'ve tried this and run in to problems a bunch of times in the past. Does anyone have a recipe for installing lxml on OS X without MacPorts or Fink that definitely works?<

15条回答
  •  情话喂你
    2020-11-30 20:56

    On OS X 10.9.1 the suggested answer above errors out during install -- following changes had to be made:

    cd /tmp  
    curl -o lxml-3.3.0.tgz http://lxml.de/files/lxml-3.3.0.tgz  
    tar -xzvf lxml-3.3.0.tgz  
    cd lxml-3.3.0  
    python setup.py build --static-deps --libxml2-version=2.8.0  --libxslt-version=1.1.24  
    sudo python setup.py install  
    

提交回复
热议问题