Installing lxml with pip in virtualenv Ubuntu 12.10 error: command 'gcc' failed with exit status 4
Here is the my saved note.
sudo apt-get install libxml2sudo apt-get install libxslt1.1sudo apt-get install libxml2-devsudo apt-get install libxslt1-devsudo apt-get install python-libxml2sudo apt-get install python-libxslt1sudo apt-get install python-devsudo apt-get install python-setuptoolseasy_install lxml
It has worked for my ubuntu 12.10
According to lxml site you could use such construction:
CFLAGS="-O0" pip install lxml
Note for those installing globally: The proper way to pass environment variables with sudo is after sudo
:
sudo CFLAGS="-O0" pip install lxml