Speed up Python AND create an .exe file with Nuitka
Mar 19, 2024 18:25:31 GMT -8
Post by Uncle Buddy on Mar 19, 2024 18:25:31 GMT -8
www.youtube.com/watch?v=z2aHkuBCLN8
I wasn't able to test this since I'm using the latest version of Python (3.12) and Nuitka is still working on a version compatible with that. My Treebard files work in 3.12. I tried installing 3.11 on a different user account (I don't use virtual environments yet). It would not run Treebard at all. I don't know how all this works, as Treebard has been developed with multiple versions of Python since 2018. I kinda don't want to know how it works. I think I should get back to writing Treebard pretty soon and let the users of my code find their own improvements.
I've started calling it Treebard-As-Is, as a joke, since the "GPS" has been dropped from the name, and since there's only one person on the Treebard team, little-old-me. Emphasis on old. I have to write the program for myself, make goals that align with my own interests, and not get too distracted by the fact that more people are getting interested in the project. A team of one is about my speed. I would like to hear back from those who have the .exe: does it work or not? All I had to do to get it to work on my second computer was to add an exclusion for the folder that it extracts into.
What I want to discuss briefly is Nuitka. (Pronounced "NOOT-ka").
The main purpose of the Nuitka project as I understand it was to translate Python into C code, which makes it run faster. So you would develop in Python, and when finished, you'd use Nuitka to create an .exe which runs C code instead of Python code.
Emphasis on .exe. Nuitka thus is an alternative to Pyinstaller. A very attractive one, in my opinion, but I won't be trying it till it works with Python 3.12. Pyinstaller works fine but I would like to try a Nuitka-output version and looking forward to Nuitka for Python 3.12.
I wasn't able to test this since I'm using the latest version of Python (3.12) and Nuitka is still working on a version compatible with that. My Treebard files work in 3.12. I tried installing 3.11 on a different user account (I don't use virtual environments yet). It would not run Treebard at all. I don't know how all this works, as Treebard has been developed with multiple versions of Python since 2018. I kinda don't want to know how it works. I think I should get back to writing Treebard pretty soon and let the users of my code find their own improvements.
I've started calling it Treebard-As-Is, as a joke, since the "GPS" has been dropped from the name, and since there's only one person on the Treebard team, little-old-me. Emphasis on old. I have to write the program for myself, make goals that align with my own interests, and not get too distracted by the fact that more people are getting interested in the project. A team of one is about my speed. I would like to hear back from those who have the .exe: does it work or not? All I had to do to get it to work on my second computer was to add an exclusion for the folder that it extracts into.
What I want to discuss briefly is Nuitka. (Pronounced "NOOT-ka").
The main purpose of the Nuitka project as I understand it was to translate Python into C code, which makes it run faster. So you would develop in Python, and when finished, you'd use Nuitka to create an .exe which runs C code instead of Python code.
Emphasis on .exe. Nuitka thus is an alternative to Pyinstaller. A very attractive one, in my opinion, but I won't be trying it till it works with Python 3.12. Pyinstaller works fine but I would like to try a Nuitka-output version and looking forward to Nuitka for Python 3.12.