(FlaskProjects-BArbVR56) D:\FlaskProjects\FlaskHTTP\mytodoism>flask shell
Python 3.7.1rc2 (v3.7.1rc2:6c06ef7dc3, Oct 13 2018, 15:44:37) [MSC v.1914 64 bit (AMD64)] on win32
App: mytodoism [development]
Instance: D:\FlaskProjects\FlaskHTTP\mytodoism\instance
>>> from selenium.webdriver.chrome.options import Options
>>> from selenium import webdriver
>>> from selenium.webdriver.common.keys import Keys
>>> _browser_url=r'C:\Users\张启宏\AppData\Roaming\360se6\Application\360se.exe'
>>> chrome_options = Options()
>>> chrome_options.binary_location=_browser_url
>>> driver=webdriver.Chrome(chrome_options=chrome_options)
DevTools listening on ws://127.0.0.1:52056/devtools/browser/2ad16248-697c-4857-beef-7bbc7234d349
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "c:\users\张启宏\.virtualenvs\flaskprojects-barbvr56\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "c:\users\张启宏\.virtualenvs\flaskprojects-barbvr56\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "c:\users\张启宏\.virtualenvs\flaskprojects-barbvr56\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "c:\users\张启宏\.virtualenvs\flaskprojects-barbvr56\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "c:\users\张启宏\.virtualenvs\flaskprojects-barbvr56\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, 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 74
(Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.10240 x86_64)
>>>