TypeError: __init__() got an unexpected keyword argument ‘service’ error using Python Selenium ChromeDriver

When i am running the code on pycharm idle the code is going good without errors. when i converted #into exe file by using pyinstaller or auto-py-to-exe i am getting this type of error. #

#i am not getting where i have to change.#
”’

import time,datetime
from datetime import date
import selenium
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import pyautogui
from pywinauto.keyboard import send_keys
import calendar
import openpyxl
import tkinter as tk
from tkinter import *
from tkinter import messagebox as mb
from pywinauto import application
import pywinauto
import comtypes.client

driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
'''