Reducing size of pyinstaller exe
try setting up your environment with a virtualenv, and install in there only the required libraries
some details on working with virtual env are here: https://virtualenv.pypa.io/en/stable/
Reduce pyinstaller executable size
The .exe file you create using pyinstaller includes the python interpreter and all modules included in your script.Maybe, the modules you are using have a big library themselves. You can however try using py2exe but it might not work for all projects.The other way to get it smaller is to use a compression program as like, compress the executable using UPX (have a look at this:http://htmlpreview.github.io/?https://github.com/pyinstaller/pyinstaller/blob/v2.0/doc/Manual.html#a-note-on-using-upx).
You can also try excluding some items too but at the discretion that removing such items doesn't interfere with the functionality of your .exe.
How can I create the minimum size executable with pyinstaller?
The problem is that you should not be using a virtual environment and especially not anaconda. Please download default python 32 bit and use only necessary modules. Then follow the steps provided in the links, this should definitely fix it.
Although you created a virtual env, are you sure your spec file is not linking to old Anaconda entries?
If all this fails, then submit a bug as this is very strange.
Pyinstaller with pygame
i suggest trying another program like py2exe to bundle python programs i currently have not had any issues with it. Their are lots of good youtube videos on the process which is cmd based. I have had some personal problems using pyinstaller and think it is just buggy assuming your program is not flawed.
Related Topics
Pandas Dataframe with Multiindex Column - Merge Levels
Efficient Numpy 2D Array Construction from 1D Array
How to Create an Encrypted Zip File
How to Transpose Dataframe in Pandas Without Index
Pyplot Common Axes Labels for Subplots
How to Remove Gaps Between Subplots in Matplotlib
Is There a Ceiling Equivalent of // Operator in Python
Find the End of the Month of a Pandas Dataframe Series
Pandas Out of Bounds Nanosecond Timestamp After Offset Rollforward Plus Adding a Month Offset
How to Determine the Length of Lists in a Pandas Dataframe Column
Writing to Existing Workbook Using Xlwt
How to Get the Nth Element of a Python List or a Default If Not Available
How to Set Folder Permissions in Windows
How to Mark a Portion of a Text Widget as Readonly
How to Change Dataframe Column Names in Pyspark
How to Efficiently Calculate a Running Standard Deviation