How to install libxml2-dev libxslt-dev on Mac os

10,620

Try adding STATIC_DEPS, like this

STATIC_DEPS=true sudo pip install lxml

Share:
10,620

Related videos on Youtube

Coderbit
Author by

Coderbit

html / css / javascript / ui / ux

Updated on June 30, 2022

Comments

  • Coderbit
    Coderbit almost 2 years

    I have installed both libxml2 and libxslt with homebrew, but it doesn't want to install libxml2-dev or libxslt-dev: Error: No available formula for libxml2-dev

    I have pip, port, and all I could found. I even installed the Xcode command line tools, but with no luck. What is the way to install libxml2-dev & libxslt-dev on Mac 10.10?

  • Parker
    Parker over 9 years
    Great to hear :). This sometimes occurs with other libs so if you ever have a similar issue, try this again
  • mhyousefi
    mhyousefi over 4 years
    So, libxml2-dev is not installed with Homebrew and rather with the command above?
  • Andrea Salicetti
    Andrea Salicetti over 4 years
    Unfortunately, it does not work solve the problem for me (Mac OS X Sierra 10.12.6)