Installing lxml, libxml2, libxslt on Windows 8.1

后端 未结 4 1011
不知归路
不知归路 2020-12-02 19:04

After additional exploration, I found a solution to installing lxml with pip and wheel. Additional comments on approach welcomed.

I\'m finding the existing Python

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 19:37

    I started working with lxml a little while ago, when there was a need to parse some html files. I somehow installed it and then after some time I lost the installation because of PC format.

    Installing lxml on Windows from the available binaries/wheels is quite easy. The below link has the binaries/wheels in case you need them.

    http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

    After downloading the wheel file as per your Windows you can issue the below command pip install

    And In case you are using git-sdk-win32 for Windows, You can first search the libxml2-devel,libxml2-python and libxslt-devel, libxslt-python using pacman by issuing the below command.

    pacman -Ss libxml2

    and

    pacman -Ss libxslt

    then you can install lxml using the below command

    pip install lxml It might fail to build the wheel(as it did for me) but will install lxml using the setup.py

    I simply have started loving this git-win32-sdk. It helps me work on my Windows with what I have learnt on Linux.

    https://github.com/git-for-windows/build-extra/releases

提交回复
热议问题