当对pyecharts结果进行使用snapshot_selenium模块保存成图片时,发生如下报错问题:
WebDriverException: ‘chromedriver’ executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
主要的原因是驱动问题,这里很简单,只需要把谷歌驱动器放到运行代码的路径下面即可,根据自己谷歌浏览器的版本下载x相应版本。如下图所示:
可查看官方文档:https://pyecharts.org