[Django]-Python – Building wheel for lxml (setup.py) … error

6👍

Problem resolved…

I’ve changed requirements.txt file to not using specified version of lxml, and everything installed fine.

I guess that specified version was too old for python 3.7

0👍

Check this readme: https://lxml.de/installation.html

I’m guessing compilation of lxml fails, as described in lxml docs, you can either provide binary distribution for your platform for instance python3-lxml.

Or setup environment to make it possible to build with these prequisites:
libxml2-dev libxslt-dev python-dev

0👍

It can be fixed by
sudo apt-get install libxml2-dev libxslt1-dev python-lxml

Leave a comment