Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

Recently, I installed lxml

Before that, I needed to introduce all the conditions for that. So I attempted to introduce liblxml2-dev, liblxslt1-dev, and python-dev (google looked for what bundles are needed for lxml) 

yet, even after that I couldn't able to introduce lxml by utilizing the order pip introduce lxml. 

Anyway, as in light of the fact that I am utilizing Python 3.4.0, I felt that might be there is a distinctive adaptation of python-dev (thought came because of confronting some comparable form struggle issue). So I attempted to introduce python3-dev

At that point, I attempted to install lxml utilizing a similar order said before and that worked!!! 

As I am an amateur in this. So I googled for those sentences and I could ready to comprehend the significance of lxml and xslt. I found a link for python-dev however I am not still sure what it is really doing. 

Might anyone be able to help :)

1 Answer

0 votes
by (26.4k points)
edited by

Python-dev contains the header documents you need to fabricate Python augmentations. lxml is a Python C-API augmentation that is aggregated when you do pip introduce lxml. The lxml sources have at any rate something like #include <Python.h> in the code. The compiler searches for the Python.h document during accumulation, consequently those records should be on your framework with the end goal that they can be found. On Linux ordinarily, the double libraries and header documents of bundles like python are discrete. Subsequently you can have Python introduced and everything turns out great yet when you need to assemble expansions you need to introduce the relating dev bundle.

Want to learn more about Python? Come and join: python training course

For more details, do check out..

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
4 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...