How do you download and install HTML5TreeBuilder ?

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Nov 18 17:22:11 EST 2014


On 18/11/2014 21:55, Simon Evans wrote:
> Dear Programmers,
> I have installed the HTMLParserTreebuilder and LXMLTreeBuilder downloads to my Python2.7 console, using the Windows Console 'pip install' procedure.
>
> I downloaded HTML5 files and installed them to my Python2.7 directory, and went through the 'pip install' procedure, but this did not work.
>
> I do not know whether it is because different procedure must be followed for HTML5, or that I downloaded the wrong files, the files I downloaded and attempted to install were the following three :-
>
> html5lib-0.999(1).tar.gz
>
> html5lib-0.999.tar.gz
>
> HTMLParser-0.0.2.tar.gz
>
> The  Windows 7.0 Console returned the following in response :-
> ----------------------------------------------------------------------------
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>
> C:\Users\Intel Atom>pip install HTML5
> Downloading/unpacking HTML5
>    Could not find any downloads that satisfy the requirement HTML5
> Cleaning up...
> No distributions at all found for HTML5
> Storing debug log for failure in c:\users\intela~1\appdata\local\temp\tmp4pxazz
>
> C:\Users\Intel Atom>pip install HTML5
> Downloading/unpacking HTML5
>    Could not find any downloads that satisfy the requirement HTML5
> Cleaning up...
> No distributions at all found for HTML5
> Storing debug log for failure in c:\users\intela~1\appdata\local\temp\tmp81fbka
>
> C:\Users\Intel Atom>pip install HTML5
> Downloading/unpacking HTML5
>    Could not find any downloads that satisfy the requirement HTML5
> Cleaning up...
> No distributions at all found for HTML5
> Storing debug log for failure in c:\users\intela~1\appdata\local\temp\tmphaw01m
>
> C:\Users\Intel Atom>
> ----------------------------------------------------------------------------
> I suppose my main conundrum is from where can I download a version of the
> HTML5 Treebuilder that will install using pip. It doesn't help that HTML5 also happens to be the name of some video editing software.
> Thank you for reading.
> PS: If anyone is upset about 'one line paragraphs' and other such petulancies, then please decline to respond, seeing as far as I'm concerned such trivialities are besides the point, and are of no help, so vent your ire elsewhere.
> YOurs Simon Evans.
>

I never download files, I just leave the work to pip.  I'm assuming this 
is what you're looking for.

c:\Users\Mark\Cash\Python>pip install html5lib
Downloading/unpacking html5lib
   Running setup.py 
(path:C:\Users\Mark\AppData\Local\Temp\pip_build_Mark\html5lib\setup.py) 
egg_info for package html5lib

Requirement already satisfied (use --upgrade to upgrade): six in 
c:\python34\lib\site-packages (from html5lib)
Installing collected packages: html5lib
   Running setup.py install for html5lib

Successfully installed html5lib
Cleaning up...

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list