I am trying to create a small .exe file for a sponsor. The python code performs calculations that use the numpy library, specifically numpy arrays. When I compile the code with pyinstaller, the exe file is relatively large (250 MB). But when I try to get rid of numpy and perform similar calculations using only lists and basic operations, the file is only 20 MB. I tried using tricks like upx but it didn't do much. Is there a way to import essential modules from numpy without generating a huge file. I just need simple stuff such as array representation, np.diff(), and np.interp(). Thanks! Continue reading...