解决一下这个问题Traceback (most recent call last): File "D:\pythonchengxu\untitled12\zuoye.py", line 12, in <module> driver = webdriver.Chrome(options=chrome_options) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in __init__ super().__init__(DesiredCapabilities.CHROME['browserName'], "goog", File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 92, in __init__ super().__init__( File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 270, in __init__ self.start_session(capabilities, browser_profile) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 363, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 428, in execute self.error_handler.check_response(response) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 243, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 112 Current browser version is 114.0.5735.110 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe Stacktrace: Backtrace: GetHandleVerifier [0x00B9DCE3+50899] (No symbol) [0x00B2E111] (No symbol) [0x00A35588] (No symbol) [0x00A5570C] (No symbol) [0x00A51471] (No symbol) [0x00A4F479] (No symbol) [0x00A81FFE] (No symbol) [0x00A81CEC] (No symbol) [0x00A7B6F6] (No symbol) [0x00A57708] (No symbol) [0x00A5886D] GetHandleVerifier [0x00E03EAE+2566302] GetHandleVerifier [0x00E392B1+2784417] GetHandleVerifier [0x00E3327C+2759788] GetHandleVerifier [0x00C35740+672048] (No symbol) [0x00B38872] (No symbol) [0x00B341C8] (No symbol) [0x00B342AB] (No symbol) [0x00B271B7] BaseThreadInitThunk [0x76847D59+25] RtlInitializeExceptionChain [0x77B6B74B+107] RtlClearBits [0x77B6B6CF+191]
时间: 2023-07-21 15:48:30 浏览: 279
linux 下 pip3 报错“ File “/usr/bin/pip3”, line 9, in from pip import mainImportError: canno”处理
5星 · 资源好评率100%
这个错误是由于你的 ChromeDriver 版本与你的 Chrome 浏览器版本不匹配导致的。你需要下载一个与你当前 Chrome 浏览器版本匹配的 ChromeDriver 版本并更新你的代码。你可以在 ChromeDriver 官网上找到与你的 Chrome 浏览器版本匹配的驱动程序,并将其替换为你当前使用的驱动程序即可。
阅读全文