Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

Terry Reedy tjreedy at udel.edu
Sat Nov 1 21:43:02 CET 2014


On 11/1/2014 10:17 AM, Simon Evans wrote:
> Hi Programmers, I have downloaded, installed, and can access the
> LXMLTreeBuilder/lxml, from Python2.7. however I have also downloaded
> HTMLTreeBuilder/html5lib but cannot get console to recognize the
> download, even using the code the download site suggests. I did put
> it in the Python2.7 directory,

What OS are you using.  Exactly where dod you put each lib?  Are each of 
the two installs a single module or a package directory?  If the latter, 
does the directory contain __init__.py

> but unlike the HTML one, it doesn't
> recognize it, so the import statement returns an error.

There must be some difference.  Look carefully. And please post the 
traceback.

-- 
Terry Jan Reedy




More information about the Python-list mailing list