Home>

I created a program using tkinter, so I tried to create an exe file, but when I tried to execute the exe file, an error was thrown and it could not be executed.
How can it be improved?

C: \ WINDOWS \ system32>C: \ Users \ username \ dist \ GUI_youyaku_t \ GUI_youyaku_t.exe
Traceback (most recent call last):
  File "AppData \ Local \ Programs \ Python \ Python38-32 \ Lib \ site-packages \ PyInstaller \ hooks \ rthooks \ pii_rth_win32comgenpy.py", line 49, in<module>
  File "c: \ users \ username \ appdata \ local \ programs \ python \ python38-32 \ lib \ site-packages \ PyInstaller \ loader \ pyimod03_importers.py", line 493, in exec_module
    exec (bytecode, module.__dict__)
  File "win32com \ __ init__.py", line 6, in<module>
  File "c: \ users \ username \ appdata \ local \ programs \ python \ python38-32 \ lib \ site-packages \ PyInstaller \ loader \ pyimod03_importers.py", line 493, in exec_module
    exec (bytecode, module.__dict__)
  File "pythoncom.py", line 3, in<module>
  File "pywintypes.py", line 61, in __import_pywin32_system_module__
ImportError: Module'pythoncom' isn't in frozen sys.path ['C: \\ Users \\ username \\ dist \\ GUI_youyaku_t \\ base_library.zip','C: \\ Users \\ username \\ dist \\ GUI_youyaku_t']
[22292] Failed to execute script pyi_rth_win32comgenpy
Supplementary information (version tools, etc.)

OS: win10
python: 3.8.6
I'm using pycharm

・ Library used for the program

import tkinter
import os
from tkinter import ttk
from tkinter import file dialog
from tkinter import messagebox
from docx import Document
import docx
from tika import parser
import io
import re
import tabula
from docx.shared import Cm
import zipfile
from pathlib import Path
from io import FileIO
import numpy as np
import pandas as pd
import docx2txt
import sys
from tkinter import *
from janome.analyzer import Analyzer
from janome.charfilter import UnicodeNormalizeCharFilter, RegexReplaceCharFilter
from janome.tokenizer import Tokenizer as JanomeTokenizer # sumy Tokenizer and name
from janome.tokenfilter import POSKeepFilter, ExtractAttributeFilter
from janome.analyzer import Analyzer
from janome.charfilter import *
from janome.tokenfilter import *
import re
from sumy.parsers.plaintext import PlaintextParser
from sumy.nlp.tokenizers import Tokenizer
from sumy.summarizers.lex_rank import LexRankSummarizer
import tornado