Cannot see lxml parser for Beautiful Soup, even after pip install #1299
Answered
by
margaretkennedy
margaretkennedy
asked this question in
Q&A
-
Problem: Cannot see lxml parser for Beautiful Soup, even after If you have already imported the bs4 module before installing lxml, bs4 will not see lxml in the list of available parsers. On the first import of bs4, the initialization of the module occurs, loading all existing parsers. This initialization does not re-occur after future pip installs. To confirm what parsers bs4 is able to see, run:
Example output where lxml is NOT recognized:
Example output where lxml IS recognized:
|
Beta Was this translation helpful? Give feedback.
Answered by
margaretkennedy
Sep 16, 2021
Replies: 1 comment
-
This is a known issue. Solution:
For example:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rachelmbrubaker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a known issue.
Solution:
For example: