Python 爬虫goole图片 使用selenium+chromedriver 出错DevToolsActivePort file doesn't exist

ch_op.add_argument('--headless')
ch_op.add_argument('--disable-gpu')
ch_op.add_argument('blink-settings=imagesEnabled=false')
使用以上代码仍旧出错,请问各位有没有其他解决方法?

加上这些试试

from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
chrome_options.add_argument('--headless')
browser = webdriver.Chrome(chrome_options=chrome_options)