My Python version is 3.8.10 and my Windows version is Win11.
When I compile to standalone exe with pyinstaller 6.0.0, the following error is generated:
Traceback (most recent call last):
File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_
![]()
win32comgenpy.py", line 46, in <module>
File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_
![]()
win32comgenpy.py", line 25, in _pyi_rthook
File "PyInstaller\loader\pyimod02_
![]()
importers.py", line 391, in exec_module
File "win32com\__init__.py", line 8, in <module>
File "PyInstaller\loader\pyimod02_
![]()
importers.py", line 391, in exec_module
File "
![]()
pythoncom.py", line 2, in <module>
File "PyInstaller\loader\pyimod02_
![]()
importers.py", line 391, in exec_module
File "
![]()
pywintypes.py", line 126, in <module>
File "
![]()
pywintypes.py", line 116, in __import_pywin32_system_module__
ImportError: DLL load failed while importing pywintypes:
The specified module could not be found.When I compile with pyinstaller 5.13.2 or below, no error is generated.