|
from selenium import webdriver
driver= webdriver.Chrome()
runfile('E:/本書範例/ch02/untitled7.py') Traceback (most recent call last):
File "E:\本書範例\ch02\untitled7.py", line 4, in <module> driver= webdriver.Chrome()
File "D:\Users\USER\anaconda3\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__ RemoteWebDriver.__init__(
File "D:\Users\USER\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile)
File "D:\Users\USER\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters)
File "D:\Users\USER\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response)
File "D:\Users\USER\anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace)
SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 94 Current browser version is 93.0.4577.82 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
有點不清楚問題,我把chromdriver放在跟spyder一樣的位置然後我的google是最新的版本,還是我的電腦因為是64位元,不應該下載chromedriver_win32.zip |