Convert GUI App to Real Program - Python to exe to setup wizard

preview_player
Показать описание
You've just made a beautiful GUI app with Python - but there's a big difference between creating an app for your personal use and distributing it all across the web, reaching many people who don't necessarily know anything about Python.
In this tutorial, I will show you exactly how to convert your Tkinter, Kivy, KivyMD, PyQT5, or other GUIs into a full-blown professional program! 🤩🤩🤩
The end result is a 😱 SINGLE SETUP FILE 😱 which anyone can download and install on their computer - even your grandmom!!! 👵
We will use Pyinstaller to create an executable file and Inno Setup to bundle it with dependencies and convert them into a setup wizard.
In addition, we will discuss some common errors, how to fix them and how to avoid irrelevant instructions (hint: do we really need to modify the SPEC file? 🤔)
We will briefly tackle licensing (open source, as you may guess 😉), and generating icons.
Please note, this video is designed for Windows developers and users! However, I will cover Linux and Mac as well in some future tutorials... the Mac tutorial is of course inspired by Tom! XDD (but only members of our Discord community will understand the joke, this is how I test if they read video descriptions 😅)

-------------------------------------------
⏰ Time Stamps ⏰
-------------------------------------------
00:00 - intro
00:40 - project files and database
01:31 - download Random Recipe Picker (or use your own Python app)
03:46 - Pyinstaller vs auto-py-to-exe
04:25 - run Pytinstaller builder
05:22 - prep GUI script for Pyinstaller
05:56 - resource path (and important sys._MEIPASS fix!)
08:18 - SPEC file
09:20 - generate software icons
10:04 - convert script and assets to exe file
11:22 - fix Pyinstaller File Not Found Error
12:48 - test executable
13:36 - install Inno Setup
14:17 - convert exe and assets into a setup file
16:39 - license
20:00 - add subdirectories to Inno Setup compilable
21:56 - test setup file on another PC
22:57 - thanks for watching! :)

-------------------------------------------
📽️ Important Tutorials 📽️
-------------------------------------------
⭐ Create GUI App with SQLite and Tkinter (Random Recipe Picker):
⭐ Anaconda for Beginners:
⭐ Convert .py to .exe with auto-py-to-exe:

-------------------------------------------
💻 VENV Alternative 💻
-------------------------------------------
$ python3 -m venv name_of_my_env
$ source name_of_my_env/bin/activate

-------------------------------------------
🖇️ Tutorial Links 🖇️
-------------------------------------------

-------------------------------------------
🤝 Connect with me 🤝
-------------------------------------------
🔗 Github:
🔗 Discord:
🔗 LinkedIn:
🔗 Twitter:
🔗 Blog:

-------------------------------------------
💳 Credits 💳
-------------------------------------------
⭐ Beautiful titles, transitions, sound FX, and music:
⭐ Beautiful icons:

#gui #graphics #app #application #python #pythonprogramming #exe #pythoncoding #software #softwaredevelopment #pythonsimplified #convert #code #pyinstaller #innosetup #wizard #windows
Рекомендации по теме
Комментарии
Автор

Hih, this is a tad too advanced info for me but oh my gosh how much I CANNOT WAIT to use this tutorial in real life!!! 😍 Thank you, Mariya! 😍 I'm only half way through but I'll finish watching the tutorial now just to see how much I understand already. Comparing oneself to the past versions of oneself is the best way too see the progress! Keep it up everyone!! 😁😁👍

And Mariya, please keep up the amazing work! Our support for you is an infinite loop after clicking 'run'! 👾🎵🥳

hiutale
Автор

I rarely comment on youtube videos, but I gotta mention just how much time I saved from the MEIPASS fix from your video. Absolute lifesaver.

talosong
Автор

This was the most complete video on this topic I have found. Appreciate the great structure and clear instruction!

mattknezel
Автор

I can't thank you enough for this video. Like lots of python developers I've been tearing my hair out trying to find a simple way to deploy python scripts in a way that my non pythonic coworkers can utilize them. This works so well, and it's a very familiar workflow for them to just install it like any other program. Also thank god you mentioned MEIPASS2 or I might have given up before finding the answer to that error.

ojaimark
Автор

It's hard to get this sort of content, great job, please keep making more on this, there are a lot of people who are very interested in distributing their own Python applications!

nickmarshallvfx
Автор

I am speechless. What an amazing and big job done for this tutorial!

sviatkey
Автор

Hi Marija, I just recently discovered your channel.
I often have problems evaluating and understanding documentations and plain text for myself, so I love that you visualize a lot in your videos!
The simplicity of the examples is incredibly important to understand the principle of things.
With this knowledge, it is then easier to understand complex explanations afterwards.
You have a gift for teaching and illustrating!
Besides that, it makes me very happy to see other women succeed in the IT world.
- A fellow Maria :)

mary_
Автор

Thank you so much! I've been struggling with this for days and then I follow your video set by step and it works perfectly!

SweetEater
Автор

I have been following your tutorials for a very long time. All are very helpful and really python simplified. Thank you and good luck.

alpcetinkaya
Автор

You have a talent to present the information very clearly and easy to understand. I wish you had an expertise beyond Python.

kamertonaudiophileplayer
Автор

Hello Mariya, I just discovered your channel today and I love how descriptive you are with every necessary task! I've been developing fun software projects over the years as more of a hobby but mainly in Visual Basic 6.0. I figured it was time to start learning Python since it appears to be the most popular and I've found that in theory it is much easier than VB6.0 the way it is structured, but it's still going to be a learning curve for sure! I believe your content will help me learn Python quickly and I would just like to say thank you very much, and keep up the great work! I Liked and Subscribed! :)

chronage
Автор

Thank you Mariya.
I'm a big fan, I love the way you deliver your tutorials.

yqgzqqm
Автор

This year it was my 1st year in Computer science and we did Python these feedback you give is amazing thank you in advance I learn new things everyday now on holidays.

dogustabiyat
Автор

I have never seen a tutorial that is so detailed and even inclusive of so many different scenarios that makes me save hours worth of time researching to debug on my own. tysm!!!

animatnetic
Автор

This is gold, Mariya! I haven’t tried it yet, but I e seen plenty of people frustrated with building up the app. I’ll definitely give it a try!

rickyusuf
Автор

Thank you for creating such an informative and helpful video on converting GUI app to a real program using Python to exe to setup wizard. Your explanation was clear and concise, and the step-by-step demonstration made it easy to follow along.

I was able to successfully convert my own GUI app using the PyInstaller and Inno Setup tools, and I couldn't have done it without your guidance. Your video has been a valuable resource for me and I appreciate the time and effort you put into creating it.

Once again, thank you for sharing your knowledge and expertise with us. Looking forward to more informative videos from you in the future.

tanultembhekar
Автор

This is perfect! I have some python programs I've been wanting to distribute and now I have the way to do it. Thank you for your excellent tutorials, you are such an awesome teacher. :)

LeftoverBeefcake
Автор

Every time I watch one of your videos, I learn something new. Thank you very much for all your efforts and for sharing your knowledge! 🌹

KhalidThwiny
Автор

Awesome video. Like code you are so concise. No distractions and you cover a lot of ground. Having watched hundreds of programming videos I must say this was the best I’ve seen. Please keep making projects!

jenglish
Автор

Hi Mariya. Thanks so much for this video. I just installed and run my app in my second pc and everything went perfectly. I was so happy to see it running. Thanks again

johnnyandrade