- 
      
 - 
        
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 )
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #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 | 
      
      
  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