OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Pyinstaller in virtual environment still yields very large EXE file

  • Thread starter Thread starter gtomer
  • Start date Start date
G

gtomer

Guest
I have a Python code of 78 lines using the following packages:

Code:
import pandas as pd
import base64
from bs4 import BeautifulSoup
import os
import win32com.client as win32
import pathlib

I ran the following commands:

Code:
venv\Scripts\activate
python -m pip install pandas
python -m pip install pybase64
python -m pip install bs4
python -m pip install pywin32
pyinstaller --onefile to_HTML.py

I have created a virtual environment in which I installed only the above packages.

Yet the EXE file created is 740Mb!!

What am I doing wrong? How can I reduce it?
<p>I have a Python code of 78 lines using the following packages:</p>
<pre><code>import pandas as pd
import base64
from bs4 import BeautifulSoup
import os
import win32com.client as win32
import pathlib
</code></pre>
<p>I ran the following commands:</p>
<pre><code>venv\Scripts\activate
python -m pip install pandas
python -m pip install pybase64
python -m pip install bs4
python -m pip install pywin32
pyinstaller --onefile to_HTML.py
</code></pre>
<p>I have created a virtual environment in which I installed only the above packages.</p>
<p>Yet the EXE file created is 740Mb!!</p>
<p>What am I doing wrong? How can I reduce it?</p>
 

Latest posts

Top