之前好好的,上周整理磁盘时不小心删了c盘的Chrome浏览器和一些数据,我的python都装在d盘,后来重装Chrome浏览器后,有些python程序可以运行,有些出问题,重装selenium也是一样的错误
在ppy.bat中
Traceback (most recent call last):
File "D:\aaa\py3\ttt.py", line 6, in <module>
driver=webdriver.Chrome()
File "d:\Python37\lib\site-packages\selenium\webdriver\chrome\webdriver.py", l
ine 50, in init
keep_alive,
File "d:\Python37\lib\site-packages\selenium\webdriver\chromium\webdriver.py",
line 64, in init
options=options,
File "d:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", l
ine 206, in init
self.start_session(capabilities)
File "d:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", l
ine 290, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "d:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", l
ine 345, in execute
self.error_handler.check_response(response)
File "d:\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py"
, line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Failed to
create Chrome process.
Stacktrace:
Backtrace:
(No symbol) [0x01296643]
(No symbol) [0x0122BE21]
(No symbol) [0x0112DA9D]
(No symbol) [0x0114D95D]
(No symbol) [0x0114A899]
(No symbol) [0x01186917]
(No symbol) [0x0118655C]
(No symbol) [0x0117FB76]
(No symbol) [0x011549C1]
(No symbol) [0x01155E5D]
GetHandleVerifier [0x0150A142+2497106]
GetHandleVerifier [0x015385D3+2686691]
GetHandleVerifier [0x0153BB9C+2700460]
GetHandleVerifier [0x01343B10+635936]
(No symbol) [0x01234A1F]
(No symbol) [0x0123A418]
(No symbol) [0x0123A505]
(No symbol) [0x0124508B]
BaseThreadInitThunk [0x769D343D+18]
RtlInitializeExceptionChain [0x779C9802+99]
RtlInitializeExceptionChain [0x779C97D5+54]
请高手指点,我不想重装整个python,谢谢贵人相救!
driver = webdriver.Chrome(executable_path=CHROME_DRIVER_PATH,chrome_options=options)#
谢谢,是版本冲突造成的,浏览器升级到相同版本问题解决,,再次谢谢