Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert a pyw file to exe?

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 !

like image 928
Costel biju Avatar asked May 19 '18 17:05

Costel biju


People also ask

How do I convert a file to exe?

Select All Files from the "Save as type" menu. 4. Name the file "filename.exe" and click Save.

Can you turn Python code into exe?

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.

How do I open a PYW file?

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".


1 Answers

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
like image 189
InAFlash Avatar answered Sep 16 '22 22:09

InAFlash