0

I built a python script with pyinstaller, but the executable file is very large. The python file is just a simple gui app with gtk. What is the cause for this?

enter image description here

Subbu VidyaSekar
  • 2,324
  • 2
  • 19
  • 35
  • 4
    Does this answer your question? [Reducing size of pyinstaller exe](https://stackoverflow.com/questions/47692213/reducing-size-of-pyinstaller-exe) – Karthik Sep 07 '20 at 11:42
  • 3
    Do you feel that an image is the way to convey a file size? – gspr Sep 07 '20 at 11:44

1 Answers1

0

Have you created a virtualenv for your project? Otherwise it will install all libraries instead of the ones really needed by your application.

If you haven't done that execute the following commands:

python3 -m venv example-env
source example-env\Scripts\activate

Now make sure to install all the libraries using pip3 in this virtualenv.

Lykas
  • 42
  • 8