pycharm中使用“from lxml import etree”
但是etree下一直标红线
代码改为:
from lxml import html
etree = html.etree
显示“Cannot find reference 'etree' in 'init.py' ”
我重新下载了对应python版本的lxml并安装成功了,也不行
是自学的python,水平有限,实在不知道该解决了,求提供思路,谢谢!
安装lxml 后, 试过 关闭重启 pycharm吗?
当前目录(程序目录)没有名字为lxml 或 html 的目录或者 py文件吧?