import urllib.request from bs4 import BeautifulSoup url = "https://news.yahoo.co.jp/pickup/rss.xml" xml = urllib.request.urlopen(url) soup = BeautifulSoup(xml, "lxml") pubdates = soup.find_all("pubdate") print(pubdates)``` **上記を実行すると**
FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
下記にこのようなエラー表記が出てしまいます。 lxmlをpipにてインストールしましたがエラー表記が未だに消えません。 エラーを消したいので、方法を教えていただけると嬉しいです。
python -c "import lxml" は成功しますか? エラーになるのではないですか?

ご返信ありがとうございます。無事解決いたしました。

回答1件
あなたの回答
tips
プレビュー