How can I convert a pyw file to exe using pyinstaller and if its not possible how do i do it with py2exe ?
I am using python 3 !
Select All Files from the "Save as type" menu. 4. Name the file "filename.exe" and click Save.
With auto-py-to-exe ,a project by Brent Vollebregt we can easily create our own executable Python applications. Underneath the GUI is PyInstaller, a terminal based application to create Python executables for Windows, Mac and Linux.
Right-click the file, click properties, under general it says "opens with:"... Click the "Change" button to the right of that, and then click more options. On that menu there should be an option called "pythonw" click that. Then on the bottom-right click "apply", then "OK".
just run the following command
pyinstaller -w your_file_name.pyw
Note: you need to install pyinstaller before running the above command.To install, run the following command
pip install pyinstaller
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With