I'm using pyinstaller
to generate an .exe
file for my single python file, but the size is more than 30MB and the startup is very slow. From what I have gathered is that pyinstaller
by default bundles a lot of stuff that are not needed. Is there a way to make sure that pyinstaller
figures out what is only needed and bundles only them? My import section on my script looks like this:
import datetime
import os
import numpy as np
import pandas as pd
import xlsxwriter
from tkinter import *
EDIT:
Or is there also a way to see the list of all modules it has bundled? So I can go through them and exclude the ones I don’t need.