Python——SessionNotCreatedException

使用Python编写爬虫时出现以下错误警示: SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 88

即当前使用的ChromeDriver同Chrome浏览器的版本不匹配,需要更新为相匹配版本的ChromeDriver。

报错内容中显示当前使用的Chrome浏览器版本为96.0.4664.**。

解决方法为在ChromeDriver下载链接:http://chromedriver.storage.googleapis.com/index.html 中找到对应版本的ChromeDriver并下载,并分别将其复制到Chrome和Python的安装目录下即可,如下图所示:

alt

alt

全部评论

相关推荐

点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务