Greg Lovern
Greg Lovern

Reputation: 977

Create python 3.5 exe on Windows

I'm helping my 10yo go through the book "Python for Kids" by Jason Briggs, on Windows 7. He already knows Scratch. He's making great progress in the book, but I'm surprised that it has no information about creating an exe; it assumes Python will be installed on any computer the kids' programs run on. That isn't going to work when the kid wants to give his programs to his friends. Helping him with this book is my own first exposure to Python.

Google led me to cx_Freeze 4.3.4, but when I try to install it (cx_Freeze-4.3.4.win32-py3.4.exe), I get the message:

"Python version 3.4 required, which was not found in the registry."

Does that mean I have to downgrade to Python 3.4? But then I found this thread which seems to indicate that cx_Freeze should work on Python 3.5:

https://sourceforge.net/p/cx-freeze/mailman/message/34695906/

What do I need to do?

Upvotes: 4

Views: 8051

Answers (2)

Frikster
Frikster

Reputation: 2885

Last I checked Pyinstaller has official support (think it's the only one thus far?) for Python 3.5

Here's a friendly tutorial on how to make an .exe using Pyinstaller. His steps works for me for simple 3.5 applications which might be all you need it for. The youtuber in the link also has a very well-covered playlist for python GUI development which was my first exposure to python GUI development.

Upvotes: 2

skrause
skrause

Reputation: 999

cx_Freeze 4.3.4 doesn't work with Python 3.5. However, the development version of cx_Freeze 5.0 is reasonably stable, but since there is still no official release yet, I could not find any easily usable distribution for Windows. So I've created a simple GitHub page with some instructions and pre-built binary Python Wheels for anyone who needs to create an exe distribution with Python 3.5 on Windows: https://github.com/sekrause/cx_Freeze-Wheels

Upvotes: 3

Related Questions