Http://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html#id49
Gives how to install, under Windows System Main is:pip install html5lib (recommended)
So the problem comes, Pip is not a system internal command, need to install, in the URL http://www.cnblogs.com/a7265813/archive/2013/12/18/3479919.html is described.
Here, we've got the order adjusted.
0: Add the Python installation path to the environment variable path, such as C:\python27, to enable the system to recognize the command python
1: Download two files first
Pip file: https://pypi.python.org/pypi/pip#downloads
Ez_install File: Http://pypi.python.org/pypi/setuptools
2: Install the Ez_install file, CD to download the road to the strength for example: D:\setuptools-17.1.1
In the Command window, enter: Python setup.py install
3: Install PIP file, CD first to download the path for example: D:\pip-7.0.3
In the Command window, enter: Python setup.py install
4: Increase the PIP road strength after the turn
C:\python27\Scripts
5: Restart the input Command window, and then enter:
Pip install html5lib
And then it's going to work.
BeautifulSoup (HTML, "Html5lib")
about how to download and install the Html5lib parser