I have written a project in PyCharm consisting of a .py file, a .txt file, a .ico file and the regular .idea folder for PyCharm projects. All is saved in C:\Users\user\PycharmProjects\myproject
.
I would like to create a single-file .exe using PyInstaller. But when I run the command pyinstaller.exe --onefile --windowed myprogram.py
, I get the following error:
'pyinstaller.exe' is not recognized as an internal or external command, operable program or batch file.
To my understanding, this is because "pyinstaller.exe" is not in the location in which I ran the command prompt.
However, if I run cmd
in the pyinstaller folder (C:\Users\user\AppData\Local\Programs\Python\Python35-32\Scripts
), my project isn't there. So that doesn't work either.
What do I need to do to get my program into one .exe file?