Error:command ' X86_64-LINUX-GNU-GCC ' failed with exit status 1

Source: Internet
Author: User

Reprinted from: http://blog.csdn.net/wang1144/article/details/42277179

In the ubuntu14.04 version of the installation of lxml, always error, after a hard search, finally found out the correct method of installation, in fact, is not dependent on packaging full:

sudo apt-get install Libxml2-dev libxslt1-dev Python-dev
sudo apt-get install Zlib1g-dev
sudo apt-get install Libevent-dev
sudo pip install lxml

Halfway through Pip install lxml may encounter an incorrect recognition situation and need to apt-get update to continue

Reference URL:

Http://lxml.de/installation.html

http://blog.marchtea.com/archives/104

Http://blog.marchtea.com/archives/91



The following are the previous references and may also be installed successfully

sudo apt-get install Python-twisted-web Python2.7-dev

Install PIP:

$ wget https://bootstrap.pypa.io/get-pip.py...$ sudo python get-pip.py install



The following error occurred when using PIP to install/upgrade lxml (up to 3.3.5):

"Error:command ' X86_64-LINUX-GNU-GCC ' failed with exit status 1"

This is because some dependent packages are not installed, and you can update the dependent packages with the following command:

$sudo Apt-get BUILD-DEP Python-lxml

After the dependency package has been updated, perform the PIP installation again:

$ sudo pip install lxml--upgrade

Error:command ' X86_64-LINUX-GNU-GCC ' failed with exit status 1

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.