src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory

前端 未结 5 1548
无人共我
无人共我 2020-12-02 07:18
  1. I am running the following comand for installing the packages in that file \" pip install -r requirements.txt --download-cache=~/tmp/pip-cache\".

相关标签:
5条回答
  • 2020-12-02 07:52

    Install libxslt-devel & libxml2-devel using

    sudo apt-get install libxml2-dev libxslt1-dev
    

    After installing follow the above one

    0 讨论(0)
  • 2020-12-02 07:54

    The certified answer works perfectly. But just adding the installation command for alpine to install libxslt-devel & libxml2-devel

    apk add --update libxml2-dev libxslt-dev
    
    0 讨论(0)
  • 2020-12-02 08:06
    1. Install Cython using

      easy_install Cython

    2. After completion of cython, install libxslt-devel & libxml2-devel using

      yum install libxslt-devel libxml2-devel

    This worked for me.

    0 讨论(0)
  • 2020-12-02 08:10

    The selected answer is right but I just wanted to add for those who use Fedora: libxslt1 is called libxslt when using dnf. So the command is:

    sudo dnf install libxml2-devel libxslt-devel
    

    devel for dnf is the same as dev for apt-get.

    0 讨论(0)
  • 2020-12-02 08:13

    without sudo rights you can install lxml with:

    STATIC_DEPS=true pip install lxml
    

    As mentioned in the lxml documentation

    0 讨论(0)
提交回复
热议问题