I have been trying to package my Tkinter app. I tried Cx-freeze and Pyinstaller. I am having some troubles with correctly creating text files, writing into and reading from them. The app works fine when not converted into an exe but does not when converted. I am using absolute paths. All this led me into asking this question: Is there any way to create a setup file that, when run, will install Python (downloaded already) and .whl files of the dependencies? This way, the app will work on others computer in its original form.
My program is dependent on Tkinter, os, time, PyMuPDF, re, pandas and numpy.
Initially, I tried to work out a solution but could resolve [Errorno2] from pyinstaller. I searched the internet but could not find a satisfactory solution. I am really hoping to have a setup file instead. I read this and this.