首页 > 代码库 > from lxml import etree 报错

from lxml import etree 报错

python 3.6

通过pip install 方式在线安装lxml

pip install lxml

from lxml import etree 报错

 

1 Traceback (most recent call last):
2   File "D:\ZLwork\gstreamer\python\get.py", line 1, in <module>
3     from film import *
4   File "D:\ZLwork\gstreamer\python\film.py", line 2, in <module>
5     from lxml import etree
6 ImportError: DLL load failed: 找不到指定的程序。

最终解决方法,下载第三方编译的lxml安装后ok

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

from lxml import etree 报错