I have my python script (battleships.py) and also along with them I have a couple of images and a few wav sound files.
How can I compile it all into one exe file setup so it installs on the users pc and they can then run it with a shortcut, let's say from the desktop.
I've looked around at py2exe and cx_freeze but I can't seem to get them to work.
I'm using python 3.4.2
Thanks :)
You have no other choice than py2exe
or cx_freeze
.
But I think only cx_freeze works in Python3. You should install it manually. After downloading it and having unzipped it you may run:
python3 setup.py install
(you can do this in a virtualenv)
It seems that it is no more necessary to install it manually for Python3. You can get directly a Windows installer for Python3.4 version there.