Unable to pip install lxml

python

#1

I created a new workspace and tried to do

pip install lxml

but I get a hangup. Here’s the full output:

Downloading/unpacking lxml
  Downloading lxml-3.6.0.tar.gz (3.7MB): 3.7MB downloaded
  Running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
    Building lxml version 3.6.0.
    Building without Cython.
    Using build configuration of libxslt 1.1.28
    
    warning: no previously-included files found matching '*.py'
Installing collected packages: lxml
  Running setup.py install for lxml
    Building lxml version 3.6.0.
    Building without Cython.
    Using build configuration of libxslt 1.1.28
    building 'lxml.etree' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -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

I’ve tried using sudo, pip3 instead of pip, and the results are the same. CPU and memory load go to 100% until I ctrl+c out of it. All other packages I’ve needed have been installed with no issues.


#2

i got a similar problem using html5 workspace.

if you create a python workspace the installation works.

i’m not a gnu-gcc compiler expert, but someone can simply create both environment and check for difference.