0

My python script ('file1.py') contains a one line print statement.

#file1.py
print("python to exe")

Pyinstaller library is used and has generated executable file ('file1.exe') for windows

pyinstaller --onefile 'file1.py'

but the generated file size of 'file1.exe' was huge say 350+MB. Using a virtual environment as suggested in the link shared by a member reduced the file size . however when another line is added importing pandas library

#file1.py
import pandas as pd
print("python to exe")

and trying to generate executable the file size increased back to 350+MB. Any ideas welcome to reduce the file size drastically.

0 Answers0