I know that pyinstaller can convert .py file into .exe, but at the same time you will have some folders, so without them your .exe file will not work. Is it possible to convert .py file into only one .exe file?
I know that pyinstaller can convert .py file into .exe, but at the same time you will have some folders, so without them your .exe file will not work. Is it possible to convert .py file into only one .exe file?
You can use auto-py-to-exe for more advanced conversion settings:
$ pip install auto-py-to-exe
$ auto-py-to-exe
Then a window will open and you are going to be able to convert your file.
You can run the below command line is if
pyinstaller --noconsole --onefile --add-data="icon.png;." main.py
Yes, it is possible. You need to add the --onefile argument.
https://pyinstaller.readthedocs.io/en/stable/usage.html#cmdoption-F