Py2Exe-Converter
For Linux Users
:
Follow this guide to easily convert your python scripts to executable files:
- Install the
py2exe-converter
package using the below mentioned command:
pip install py2exe-converter
- Now import the package by running the below mentioned command:
import py2exe_converter as pec
Note: You can use -p requirements.txt
along with the above command in order to install all the packages in the .exe
file that are used by your .py
file.
- Now run the following command to convert the
.py
file to.exe
file:
pec.convert('example.py`, `requirements.txt')
Note: Inputting requirements.txt
is optional.
- Open the
example.exe
file and confirm that the program is running fine :)