I'm fairly new to coding, so please forgive any misuse of terminology or 
any ignorance. I have written a Python script in the Spyder IDE in the 
Anaconda environment. I believe the only thing I am importing that is not 
part of the Python standard library is MatPlotLib. I installed PyInstaller 
and PyWin32 by entering the following commands into Anaconda Prompt:

conda install -c conda-forge pyinstaller
conda install -c anaconda pywin32

Then in the prompt I cd to the directory containing my script and enter the 
following:

pyinstaller -F <your_script_name>.py

This generates the expected files and folders. When I go to the dist folder I 
find my .exe. However, when I try to run it, it opens a command prompt window 
but nothing is displayed. I was able to use the same approach to succesfully 
generate an executable for a simpler script I wrote (that script does not 
import MatPlotLib).
I'm guessing there is an issue with packaging something from MatPlotLib. I 
tried installing the latest development version of PyInstaller but I don't know 
how to do that using the conda command to install it in the Anaconda 
environment. Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyinstaller.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/662c043e-f719-4b0c-902d-99d4417d9cf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to