I have been attempting to compile a python project that uses these imports
import os
import numpy
import sys
import pytube
import time
from moviepy.editor import *
I have installed all of them via pip and I have also been looking around for trouble shooting tips but none of them seem to work. I keep getting this error when executing the built executable via Auto-py-to-exe.
Traceback (most recent call last):
File "C:\Users\*****\AppData\Local\Programs\Python\Python38\Lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_win32comgenpy.py", line 49, in <module>
import win32com
File "c:\users\*****\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 489, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\win32com\__init__.py", line 5, in <module>
ModuleNotFoundError: No module named 'win32api'
[17344] Failed to execute script pyi_rth_win32comgenpy
Anyone know a way to fix it?