I am trying to install lxml inside virtualenv on ubuntu 14.04.
$ uname -a Linux foobar 3.13.0-48-generic
I have dependencies installed as indicated in the lxml documentation. Here are the specific packages that I installed:
$ dpkg-query -l | grep libxml ii libxml-commons-external-java 1.4.01-2build1 all XML Commons external code - DOM, SAX, and JAXP, etc ii libxml-commons-resolver1.1-java 1.2-7build1 all XML entity and URI resolver library ii libxml-parser-perl 2.41-1build3 amd64 Perl module for parsing XML files ii libxml2:amd64 2.9.1+dfsg1-3ubuntu4.4 amd64 GNOME XML library ii libxml2-dev:amd64 2.9.1+dfsg1-3ubuntu4.4 amd64 Development files for the GNOME XML library ii python-lxml 3.3.3-1ubuntu0.1 amd64 pythonic binding for the libxml2 and libxslt libraries $ dpkg-query -l | grep libxslt ii libxslt1-dev:amd64 1.1.28-2build1 amd64 XSLT 1.0 processing library - development kit ii libxslt1.1:amd64 1.1.28-2build1 amd64 XSLT 1.0 processing library - runtime library ii python-lxml 3.3.3-1ubuntu0.1 amd64 pythonic binding for the libxml2 and libxslt libraries $ dpkg-query -l | grep python-dev ii libpython-dev:amd64 2.7.5-5ubuntu3 amd64 header files and a static library for Python (default) ii python-dev 2.7.5-5ubuntu3 amd64 header files and a static library for Python (default)
When I try to install inside virtualenv:
$ virtualenv venv New python executable in venv/bin/python Installing setuptools, pip, wheel...done. ~$ source venv/bin/activate (venv)~$ export PATH=$PATH:/usr/lib/gcc/x86_64-linux-gnu/4.8/
However, I have liblto_plugin.so:
$ find -name liblto_plugin* 2> /dev/null ./usr/lib/gcc/x86_64-linux-gnu/4.8/liblto_plugin.so ./usr/lib/gcc/x86_64-linux-gnu/4.8/liblto_plugin.so.0 ./usr/lib/gcc/x86_64-linux-gnu/4.8/liblto_plugin.so.0.0.0
I know that I can install lxml using apt-get, but I'm trying to create a virtual environment in which I can install these packages so that I have a consistent environment for unit tests.
Any suggestions on how to make this work would be appreciated.
source share