Error message "Error:command ' CC ' failed with exit status 1" When using PIP to install Pyspider on Mac
Here we found the reason https://www.v2ex.com/t/188228, is not installed LIBXML2 and libxslt two libraries, installed on the line.
Because the system does not have brew installed, so from the Niang find the installation method, terminal run the following code
<span style= "FONT-FAMILY:SIMSUN;FONT-SIZE:14PX;" >ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)" </span>
After you have installed the brew, manipulate the LIBXML2 and LIBXSLT libraries with the following code
Brew Install LIBXML2
Brew install libxslt
Brew link LIBXML2--force
sudo <span style= "LINE-HEIGHT:17.9200000762939PX; widows:1; " >pip Install lxml</span>
Final installation Required Pyspider
sudo pip install Pyspider
The installation was successful.