pip install webdriver-manager
######代码如下
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import os
import sys
sys.path.append(os.path.abspath(''))
from config.config import ConfigManager
# 下载webdriver 到指定的路径
print(ConfigManager.DRIVER_PATH)
driver = webdriver.Chrome(ChromeDriverManager(path=ConfigManager.DRIVER_PATH).install())