compilation - Python 3.4.2 compile py to exe with images and sounds -


I have my Python script (battleships.py) and with them I also have some images and some voice sound files.

How can I compile it into an XE file setup so that it can be installed on the PC and then run it with a shortcut, let's say from the desktop.

I have looked around on py2exe and cx_freeze but I can not seem to work them out.

I am using Python 3.4.2

thanks :)

You do not have any other options with py2exe or cx_freeze . But I think that only cx_freeze works in Python 3. You must install it manually. After downloading it and unzipping it, you can run:

  python3 setup.py install  

(You can do virtualenv )

Edit:

It looks like it does not need to install manually for Python 3 manually. You can get a Windows Installer directly for Python 3.4 version.


Comments