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

后端 未结 15 2338
礼貌的吻别
礼貌的吻别 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条回答
  •  猫巷女王i
    2020-11-30 21:09

    using homebrew (0.9.5) on el capitan (10.11.1) the following worked for me:

    brew install libxml2
    LD_FLAGS=-L/usr/local/opt/libxml2/lib CPPFLAGS=-I/usr/local/opt/libxml2/include/libxml2 pip install lxml
    

提交回复
热议问题