30-Days-of-Python icon indicating copy to clipboard operation
30-Days-of-Python copied to clipboard

Day 12 python3 pip install requests_html failed on mac

Open lilyLovesJeans opened this issue 1 year ago • 1 comments

I have a question , I can't install the module requests_html on MacOS Catalina , and have errors as follows , Can you help me ?

  *********************************************************************************
  Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
  Perhaps try: xcode-select --install
  *********************************************************************************
  error: command '/usr/bin/clang' failed with exit code 71
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for lxml Failed to build lxml ERROR: Could not build wheels for lxml, which is required to install pyproject.toml-based projects

lilyLovesJeans avatar Nov 08 '23 06:11 lilyLovesJeans

Install the Xcode Command Line Tools by typing xcode-select --install into your terminal. Also make sure that libxml2 is installed, you can install it by typing brew update, and then brew install libxml2

WaterNewt avatar Jan 02 '24 11:01 WaterNewt