30-Days-of-Python
30-Days-of-Python copied to clipboard
Day 12 python3 pip install requests_html failed on mac
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
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