Search code examples
pythonpython-3.xpyinstallerpy2exe

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 !


Solution

  • 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