Search code examples
pythonbeautifulsouppython-importimporterrorenthought

Unable to import an installed package


I use the Enthought Canopy environment with Python, v1.5.5. The Package Manager indicates I have beautifulsoup4 installed, v4.3.2-5. Yet all of the following fail, producing Import Error: No module named xxxxxx:

import beautifulsoup
import beautifulsoup4
import BeautifulSoup

Listing installed packages with pip includes ..., 'beautifulsoup4==4.3.2', ... in the list.


Solution

  • According to what is there in the "Quick Start" documentation paragraph:

    from bs4 import BeautifulSoup