解決lxml安裝後無法import到etree模塊的問題

使用from lxml import etree 現紅:

在這裏插入圖片描述

解決:

python 3.5之後的lxml中不能再直接引入etree,換了一種方法引入:

from lxml import html
etree = html.etree
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章