You can try using PyInstaller to package Python programs as standalone executables. It'll works on Windows, Linux, and Mac.
Try to Install PyInstaller from PyPI:
pip install pyinstaller
Now, go to your program’s directory and run:
This will generate the bundle in a subdirectory called dist.
For more detailed information, refer to this:https://pyinstaller.readthedocs.io/en/stable/