Install libxml2 and associated python bindings - Windows

前端 未结 5 1307
盖世英雄少女心
盖世英雄少女心 2020-11-30 01:01

I am attempting to install libxml2 so that I can setup the python bindings and eventually use lxml.

However I am unable to work out here on earth I am supposed to be

相关标签:
5条回答
  • 2020-11-30 01:50

    Realize this is an old topic but have had issues installing this on windows.

    I have Python version 3.4.4.

    When attempting to install whl files make sure you are using the correct version for your version of python.

    so in this case i needed to use

    lxml‑3.4.4‑cp34‑none‑win_amd64.whl
    

    and not the latest which was

    lxml‑3.4.4‑cp35‑none‑win_amd64.whl

    cp34 indicates the python version its built for.

    Trap for new players...!

    0 讨论(0)
  • 2020-11-30 01:52

    The Windows binaries of the latest version of lxml (as well as a wide range of other Python packages) are available on http://www.lfd.uci.edu/~gohlke/pythonlibs/

    0 讨论(0)
  • 2020-11-30 01:57

    If you don't have special reasons to compile from source, you can use prebuilt binaries for lxml

    0 讨论(0)
  • 2020-11-30 01:58

    If you are using python 2.5.x, just use "easy_install lxml==2.2.2" to install

    0 讨论(0)
  • 2020-11-30 02:06

    It appears that the program "xslt-config" is not located in a directory in your PATH environment. Here's an article on setting PATH on Windows:

    http://www.cs.usask.ca/~wew036/latex/env.html

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