Skip to content

Is there a way to package the project using pyinstaller without all of these files? #423

Answered by Akascape
zSynctic asked this question in Q&A
Discussion options

You must be logged in to vote

@zSynctic I know what the problem is, you want to provide a clean looking executable version of your program but pyinstaller is packing too much files in the package.
I have researched a lot about pyinstaller and I have the possible solutions for you.

First of all use the latest pyinstaller only, there are some few bugs recently fixed in the latest version.

Solution 1

Do a fresh installation of a different python version on your system and download only the required modules that your python program needs like customtkinter and pyinstaller. Use pyinstaller in that version to make your executable.
By this, unnecessary cache and modules will never be included.

Solution 2

If you use one-folder

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
5 replies
@zSynctic
Comment options

@Akascape
Comment options

@zSynctic
Comment options

@Akascape
Comment options

@zSynctic
Comment options

Answer selected by zSynctic
Comment options

You must be logged in to vote
10 replies
@Akascape
Comment options

@zSynctic
Comment options

@zSynctic
Comment options

@Akascape
Comment options

@zSynctic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants