pip install html报错,求解

如题
如图

img

这个是由于Python版本与下载的库版本不一致导致的:
Python3的str 默认不是bytes,所以不能decode,只能先encode转为bytes,再decode
python2的str 默认是bytes,所以能decode

现在的情况就是你的Python是3.x的,而这个库默认的版本是2.x的,试一下其他的版本吧:
pip install html==1.15
或者更低的版本