Skip to content

Instantly share code, notes, and snippets.

@vitalbh
Forked from douglasmiranda/gist:2555156
Created August 21, 2012 23:22
Show Gist options
  • Save vitalbh/3420392 to your computer and use it in GitHub Desktop.
Save vitalbh/3420392 to your computer and use it in GitHub Desktop.
Solução para instalar lxml no ubuntu com sucesso =] ( erro em pip install lxml )
#Se o erro for algo parecido com isto:
#building 'lxml.etree' extension
#gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
#In file included from src/lxml/lxml.etree.c:239:0:
#src/lxml/etree_defs.h:9:31: erro fatal: libxml/xmlversion.h: Arquivo ou diretório não encontrado
#compilação terminada.
#error: command 'gcc' failed with exit status 1
#basta instalar libxml2-dev e libxslt-dev
sudo apt-get install libxml2-dev libxslt-dev
@vitalbh
Copy link
Author

vitalbh commented Aug 21, 2012

  • sudo apt-get install python-lxml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment