Error while running executable file

Hi,
We built executable file for Yolo v5 without any error using pyinstaller, however, when we try to run the exe we are getting Moduleerror: torch module not found.

While building the exe we have excluded few libraries to reduce the exe size but have provided the path for the library.

When we run the model using terminal the model runs without any issue/error.

Any idea why the exe is not able to locate the torch.

Thanks,
Sreekanth