ModuleNotFoundError No module named 'HTMLTestRunner'


Traceback (most recent call last): File
"<input>", line 1, in <module> File "D:\Software\work_software\PyCharm 2019.1.1\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "D:\Software\work_software\PyCharm 2019.1.1\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:/Users/C1352/Desktop/python学习资料/pyecharts-master/use_pyecharts.py", line 1, in <module> import pyecharts File "D:\Software\work_software\PyCharm 2019.1.1\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "D:\Software\work_software\anaconda\lib\site-packages\pyecharts\__init__.py", line 1, in <module> from pyecharts import charts, commons, components, datasets, options, render, scaffold File "D:\Software\work_software\PyCharm 2019.1.1\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "D:\Software\work_software\anaconda\lib\site-packages\pyecharts\components\__init__.py", line 2, in <module> from .table import Table File "D:\Software\work_software\PyCharm 2019.1.1\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "D:\Software\work_software\anaconda\lib\site-packages\pyecharts\components\table.py", line 4, in <module> from prettytable import PrettyTable File "D:\Software\work_software\PyCharm 2019.1.1\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "D:\Software\work_software\anaconda\lib\site-packages\prettytable.py", line 50, in <module> from html.parser import HTMLParser File "D:\Software\work_software\PyCharm 2019.1.1\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) ModuleNotFoundError: No module named 'html.parser'

用pyecharts画图时,发现这个报错,参考多个博客没有找到解决方案

于是换了一种思路,查看了pyecharts版本

 

 

 于是更换下版本

pip install pyecharts==0.1.9.4

然后运行一下,成功

 

posted @ 2020-07-13 16:25  土豆吖  阅读(968)  评论(0编辑  收藏  举报