Python数据分析 pyecharts 生成图片问题

采用pyecharts 生成图片的时候,在使用前需要做两件事件

1. 安装snapshot_selenium

pip3 install snapshot_selenium

2. 设置chromedriver驱动到PATH 中

常见错chromedriver或者chromedriver.exe 没有放到PATH 下,导致使用的时候出现错误

windows或者mac 下安装chromedriver 驱动

下载chromedriver 驱动

http://chromedriver.storage.googleapis.com/index.html?path=2.9/

根据不同的系统选择。

1.1 windows 下驱动的安装

https://www.jianshu.com/p/dc0336a0bf50

需要把 chromedriver.exe 拷贝到谷歌浏览器的安装目录,同时配置PATH 即可

1.2 mac 版本驱动安装 https://www.crifan.com/mac_pycharm_debug_selenium_common_exceptions_webdriverexception_chromedriver_executable_needs_to_be_in_path/

只需要把 chromedriver 拷贝到/usr/local/bin 即可解决

学习中若遇到任何问题,可咨询QQ: 1121025745。 添加时候请说明来源和原因

发布了267 篇原创文章 · 获赞 66 · 访问量 43万+

猜你喜欢

转载自blog.csdn.net/shenfuli/article/details/94401967
今日推荐