html5lib installed but BeautifulSoup cannot find it

Viewed 5097

I have installed the html5lib package. I'm sure because when i try to install it, i get a message that it is already installed.

pip install html5lib
Requirement already satisfied: html5lib in ./anaconda/lib/python3.5/site-packages

Also i am able to successfully import that package.

import html5lib

Yet when I try to use the parser as a part of the BeautifulSoup constructor

soup = BeautifulSoup(response.data, 'html5lib')

I'm unsuccessful

FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?

Is it possible to force bs4 to lookup the installed parsers and successfully find html5lib?

1 Answers

Took Megalng's suggestion and restarted the IDE. That did the trick!

Related