安装包时无法导入名称 'html5lib' 错误

cannot import name 'html5lib' error while installing packages

安装 mxnet 包时出现错误:

cannot import name 'html5lib'

& 当我进行 html5lib 包安装时,我遇到了同样的错误。

可以在 image.

中看到完整的错误消息

我已经使用 Anaconda 安装了 python。

尝试 运行 conda update -f html5lib,这将尝试更新您的 html5lib。我在通过 conda 安装某些东西 (tensorflow) 后也遇到了这个问题,它必须降级 html5lib 并且破坏了 pip.

的一切

Windows 10 用 Anaconda 修复

conda install -c anaconda html5lib

参考:https://anaconda.org/anaconda/html5lib