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.