Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyinstaller exe size
#10
I have tested with code you send me,and i make a working .exe of that code with size of 23.4MB.

The problem is that you are doing something wrong when making the environment.
Here is all step taken from cmd,run cmd as  administrator.
Python version used is 3.6 as shown in tutorial here and part-2 has info about virtual environment.

Start cmd
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. Med enerett.

C:\WINDOWS\system32>cd\
C:\>e:

# Make folder Test3
E:\>mkdir Test3

# cd into folder
E:\>cd Test3

# Make virtual environment 
E:\Test3>python -m venv build_env

# cd into build folder
E:\Test3>cd build_env

# Activate environment 
E:\Test3\build_env>E:\Test3\build_env\Scripts\activate.bat

# See (build_env) and test that pip use this folder
(build_env) E:\Test3\build_env>pip -V
pip 9.0.1 from e:\test3\build_env\lib\site-packages (python 3.6)

# Install Pyinstaller
(build_env) E:\Test3\build_env>pip install pyinstaller
Collecting pyinstaller
  Downloading PyInstaller-3.3.1.tar.gz (3.5MB)
    100% |████████████████████████████████| 3.5MB 333kB/s
Requirement already satisfied: setuptools in e:\test3\build_env\lib\site-packages (from pyinstaller)
Collecting pefile>=2017.8.1 (from pyinstaller)
Collecting macholib>=1.8 (from pyinstaller)
  Using cached macholib-1.9-py2.py3-none-any.whl
Collecting future (from pyinstaller)
Collecting pypiwin32 (from pyinstaller)
  Using cached pypiwin32-220-cp36-none-win32.whl
Collecting altgraph>=0.15 (from macholib>=1.8->pyinstaller)
  Using cached altgraph-0.15-py2.py3-none-any.whl
Installing collected packages: future, pefile, altgraph, macholib, pypiwin32, pyinstaller
  Running setup.py install for pyinstaller ... done
Successfully installed altgraph-0.15 future-0.16.0 macholib-1.9 pefile-2017.11.5 pyinstaller-3.3.1 pypiwin32-220

(build_env) E:\Test3\build_env>
Now it work continue first with Pandas dependencies as shown before in post.
Reply


Messages In This Thread
pyinstaller exe size - by issac_n - Dec-08-2017, 09:39 AM
RE: pyinstaller exe size - by DeaD_EyE - Dec-08-2017, 09:52 AM
RE: pyinstaller exe size - by issac_n - Dec-15-2017, 03:47 AM
RE: pyinstaller exe size - by snippsat - Dec-08-2017, 03:06 PM
RE: pyinstaller exe size - by metulburr - Dec-15-2017, 03:52 AM
RE: pyinstaller exe size - by snippsat - Dec-15-2017, 04:33 PM
RE: pyinstaller exe size - by issac_n - Dec-18-2017, 10:17 AM
RE: pyinstaller exe size - by snippsat - Dec-18-2017, 04:27 PM
RE: pyinstaller exe size - by issac_n - Dec-19-2017, 03:41 AM
RE: pyinstaller exe size - by snippsat - Dec-19-2017, 05:02 PM
RE: pyinstaller exe size - by issac_n - Dec-22-2017, 09:12 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020