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:pythonget.py", line 1, in <module>
3     from film import *
4   File "D:pythonfilm.py", line 2, in <module>
5     from lxml import etree
6 ImportError: DLL load failed: 找不到指定的程序。

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

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

原文地址:https://www.cnblogs.com/newvoyage/p/7039328.html