相信看到这的小伙伴已经安装好了selenium包了 pip3 install selenium
,
可能是运行的时候出现这样的错误
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
这可能与你用的chrome浏览器自动更新有关,你需要下载与你浏览器版本号相匹配的chromedriver版本,点击这里跳转到下载处
在页面中选择download
然后自行选中想匹配的版本