A
A
Andrey Krasnov2020-05-18 17:09:10
Python
Andrey Krasnov, 2020-05-18 17:09:10

How to exclude unused PyQt5 modules when compiling?

Everyone is well aware that when creating a binary from a PyQt5 application using PyInstaller, the size of the binary is very large (30mb, or even more)
I am making an application that uses only buttons and text lines. But when built, pyInstaller includes a bunch of unnecessary libraries (like WebSockets, OpenGl, Tiff, Network, etc.) that are not used anywhere.
How can pyInstaller be configured to exclude unnecessary libraries? I am sure that the size of the binary will decrease at least twice.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question