单独安装 html5lib,执行 pip install html5lib,报错如下:
<pre>
------------------------------------------------------------
/root/maodou/venv/bin/pip run on Wed Feb 21 11:33:50 2018
Downloading/unpacking html5lib
。。。。
Running
setup.py egg_info for package html5lib
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/root/maodou/venv/build/html5lib/
setup.py", line 54, in <module>
MarkerEvaluation = pkg_resources.MarkerEvaluation
AttributeError: 'module' object has no attribute 'MarkerEvaluation'
Complete output from command python
setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/root/maodou/venv/build/html5lib/
setup.py", line 54, in <module>
MarkerEvaluation = pkg_resources.MarkerEvaluation
AttributeError: 'module' object has no attribute 'MarkerEvaluation'
----------------------------------------
Cleaning up...
Removing temporary dir /root/maodou/venv/build...
Command python
setup.py egg_info failed with error code 1 in /root/maodou/venv/build/html5lib
Exception information:
Traceback (most recent call last):
File "/root/maodou/venv/lib/python2.7/site-packages/pip/
basecommand.py", line 134, in main
status =
self.run(options, args)
File "/root/maodou/venv/lib/python2.7/site-packages/pip/commands/
install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/root/maodou/venv/lib/python2.7/site-packages/pip/
req.py", line 1134, in prepare_files
req_to_install.run_egg_info()
File "/root/maodou/venv/lib/python2.7/site-packages/pip/
req.py", line 259, in run_egg_info
command_desc='python
setup.py egg_info')
File "/root/maodou/venv/lib/python2.7/site-packages/pip/
util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python
setup.py egg_info failed with error code 1 in /root/maodou/venv/build/html5lib
</pre>