Hello, I'm using python 3.9.16, first time i made an .exe it was aprox 400mb of size then added 3 lines of code and it went to 800mb aprox. Then did the same process (add more lines and made .exe again since its a code i keep changing and adding stuff). The problem right now is the .pkg at build folder size is more than 5gb and i think is oversize and cant even make the .exe now.
¿What could be the problem?
Thanks in advance for any ideas.
I make the .exe in windows at cmd with this:
python -m PyInstaller main.spec
Also here are the imported packages:
import time
from kivy.app import App
from kivy.uix.boxlayout
import BoxLayout
import datetime
from kivy.properties
import StringProperty
from kivy.uix.widget
import Widget
from kivymd.app import MDApp
from kivy.clock
import Clock
from kivymd.uix.list
import MDList
, OneLineListItem
from kivymd.theming
import ThemeManager
from kivy.garden.matplotlib
import FigureCanvasKivyAgg
from kivymd.uix.button
import MDRaisedButton
from kivy.uix.boxlayout
import BoxLayout
from kivy.uix.screenmanager
import Screen
, ScreenManager
from kivymd.uix.datatables
import MDDataTable
from kivymd.uix.boxlayout
import MDBoxLayout
from kivymd.uix.button
import MDRoundFlatButton
, MDRectangleFlatButton
from kivymd.uix.textfield
import MDTextField
from kivymd.uix.card
import MDCard
from kivymd.uix.label
import MDLabel
from kivy.uix.image
import Image
from kivy.uix.gridlayout
import GridLayout
from kivymd.uix.button
import MDFillRoundFlatButton
from kivymd.uix.gridlayout
import MDGridLayout
from kivy.uix.button
import Button
import matplotlib.pyplot
as plt
from matplotlib
import pyplot
as plt
, dates
import random
from kivy.metrics
import dp
from kivy.core.window
import Window
import numpy
as np
from class_spectrometer
import Spectrometer
from class_calculus
import Calculus
import threading
import pandas
as pd
import csv
import os
import cProfile
import pstats
from tkinter
import filedialog
from tkinter
import Tk
from kivy.config
import Config
import pickle
from kivy.core.window
import Window