1、好像是你写错了:是from,不是form2、试试:将 form lxml import etree 改成 from lxml import etree
没有lxml模块。安装一下就好了。命令行终端执行:pip install lxml