python - How do I add an include path when pip installing lxml on Centos7 using Salt? -


i'm trying install lxml python 3.4 on centos7.

i have salt state looks this:

lxml:   pip.installed:     - bin_env: /opt/rh/rh-python34/root/bin/pip3     - env_vars:         include: /usr/include/libxml2 

but doesn't work. or without env_vars, error:

src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: no such file or directory

so environment variable have add build see xmlversion.h? exists:

# salt 'myminion' file.readdir /usr/include/libxml2/libxml | grep version     - xmlversion.h 

if have xml dev packages installed already, can please try symlink sudo ln -s libxml2/libxml libxml noted here: src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: no such file or directory


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -