ImportError: No module named lxml.etree

落花浮王杯 提交于 2019-12-01 17:52:50
Samer Makary

Try adding the library to the GAE .yaml file.

Under libraries add

-name: lxml    
 version: latest

Try to using etree without import it like (lxml.etree() ) I think it function no module or install it if it a module

Try:

from lxml import etree

or

import lxml.etree <= This worked for me instead of lxml.etree()

not2qubit

Are you using Cygwin's python, or something else? I wrote a very long answer about all these problems in another post, here: ImportError: Permission Denied while using LXML

In my case, i Downloaded and installed the lxml binary from lfd.uce.edu for Python 2.7. It works fine for me.

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