Install libxml2 and associated python bindings - Windows

只愿长相守 提交于 2019-11-27 03:39:51
YOU

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

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/

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

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...!

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!