Workaround for Error:command ' CC ' failed with exit status 1 when installing Pyspider on Mac

Source: Internet
Author: User

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.