Get python packages used in a PyInstaller generated executable

I have an executable that was generated with PyInstaller and want to know if there is a way to get the list of packages that were used, ideally with their versions.

I do not have the original script.

Used the ldd command within Git Bash but that only lists the windows DLLs.

Also tried the python package Sumatra, which has some methods on fidnding dependencies but was not able to get what I needed.

Is there another, simpler way to get this type of information?

Leave a Comment