What to do if i have a folder with the code file and other bunch of files which are referenced in code by name only (not by full path)?should i just enter full paths and make the main code file into exe or is there any other method
I see the application opening time is very much noticable for this simple application. How do you think this would be even useful for bigger applications. How to optimise the load time. Do you suggest any other ways to do it.
made my tkinter app to an executable using pyinstaller. Getting error while running the app - "Windows cannot access the specified device , path, or file. You may not have the specified permission to access the item. ************** NEED HELP *****************
Thank You Great explanation. i have a question How to build Executable (.exe) file from Python for all Versions of Windows (Seven,8,10,11) i used PyInstaller in windows 10 ,but the Executable file compiled by PyInstaller does not work on Windows 7
I had 6 nested tkinter files and everything works, except my main program. None of the functions work, it throws tons of errors in the console, but when i run my project in python its all good, no idea, thanks for the shared info tho
Very useful video for the beginner of python to convert the .py file to exe file type. But for my situation, i need to use the "python -m PyInstaller main.py --onefile -w"
Very useful. thanks Hala. I have an issue, the final output has an app and an executable file. The app doesnt work in the sense that it only takes the inputs but does not open up the target folder in my program. it works only with the exe file and not the app file. So the app file is redundant. How do I merge the executable file and the app file.
This is what happens C:\Windows\System32>pip install pyinstaller 'pip' is not recognized as an internal or external command, operable program or batch file. please help
I successfully converted and executed the code. However, when I added a logo image to my code and attempted to convert it into an executable (exe) file, it didn't work as expected. Instead, it only created an image.png file. Please help me
I downloaded pyinstaller but still it says : 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. what to do??
I have the exact same issue: 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. I've made sure that pyinstaller is installed correctly, so that isn't the problem. .
A fix for this is "python -m PyInstaller" Then run whatever she said to do, this should fix your issues, worked for me, just make sure P in Py and i in Installer are both capitalized otherwise it WILL NOT work. Good luck and hope this helps! @Quantum Mechanic @NFxSwoops Edit: Man how the hell do these @ things work lol
@@georgecarlinismytribe I fixed this recently, you have to modify your user enviroment variable to include "C:\Users\[USERNAME]\AppData\Local\Programs\Python\PythonXXX\Scripts" Once you've done this you have to uninstall and reinstall "pyinstaller" then in your terminal use Pyinstaller to check if pyinstaller has installed correctly, Hope this helps.
i dont have a single file project.. actually my main file gets some functions from another file and some images from a 'assets' folder.. so will this work the same ?
Thanks for the information! Just a QQ - This would work in the same if I've several libraries others than Tkinter, like pandas, openpyxl, etc... right?
I am getting this error "C:\Windows\System32\Executable File>python -m pyinstaller --onefile -w Data_Entry_Form.py C:\Program Files\Python311\python.exe: No module named pyinstaller" how can I fix it?
I receive this message "'pip' is not recognized as an internal or external command, operable program or batch file." !! Any suggestions?? (don't shoot me, i'm not a programmer. i just started to code :D)
hey hala i hope you're doing good i have a pblm they give me this message 'pyinstaller' is not recognized as an internal or external command, operable program or batch file.
Do you know how to include the gspread module?, I got the error: Traceback (most recent call last): File "main.py", line 3, in ModuleNotFoundError: No module named 'gspread'
hey it gives me a error mesage saying: Traceback (most recent call last): File "AZORUS_AUTO_CLICKER.py", line 2, in File "bdb.py", line 90, in trace_dispatch File "bdb.py", line 114, in dispatch_line File "pdb.py", line 340, in user_line File "pdb.py", line 438, in interaction File "pdb.py", line 401, in _cmdloop File "cmd.py", line 126, in cmdloop RuntimeError: input(): lost sys.stdin tf do i need to do. it says that the problems is with import ctypes as ct
Very nice! This is a great video and resolves most of the issues I was concerned with! Two questions though: Does anyone know (video creator or comment reader) whether this will also work with custom TKinter? Also, if I am building something that requires reading in a file (like a CSV of data for example) is there a way with the "one file" approach to keep the CSV separate so you aren't encapsulating multiple MB of data into the .exe file (also because the data in the CSV will get updated from time to time and it would be nice to not have to recompile every time)?
whenever i use Tkinter, i get errors after i convert to an exe. not sure why, but it only works on computers that already have python installed. any other computers use the exe file, errors.... pretty lame. i like tkinter. however, when i use PyQt5, never any problems.
In my cmd, when i press enter after writing the command,,, it says that- 'pyinstaller' is not recognized as an internal or external command, operable program or batch file. How can i solve this problem?
Hello, very useful indeed thank you. However what if I have a background image and program icon included in my script When I convert to Exe and run on another computer it gives error of missing background and Icom in path xxxxxxx. How can I resolve this issue? Thanks in advance
@@richardmagala6442 Hello Richard, i added the logo & the icon to the script folder and converted to exe but still getting this error of the missing files even on my laptop: _tkinter.TclError: couldn't open "pass background2.png": no such file or directory
@@alielsheikh8091 Hello, this is bit late but i hope you got the answer if you didn't, you need to put your logo and icon in the same folder as your exe, i had the same problem but once i put my logo and icon in the same folder as my exe it worked, hope this would fix your problem
Really helpful learning python. Just one quick question, Does python need to be installed to run this exe, or we can run this exe in any system without python installed in it?
I tried this and Windows Defender Immediately said it detected a Trojan Horse (Win64/Malgent!MSR), and it only affected my .py (exe) file that was created... is this normal? I immediately removed it but I don't know what happened.
TLDR: you need to "pip install pyisntaller" and then execute "pyinstaller (python file) --onefile -w
🤣 you condensed the entire video into one sentence
is "pyisntaller" deliberate?
The only person who explains how to remove the console window! Thank you!
I agree with ALL the previous affirmative comments. :) Great, concise, easy to understand. No extraneous information!! Just great content.
very concise while still keeping the most precious details
I have exactly those problems and i didn't know how to solve them until i watched your video, great explanation :)
Hey :) You dont need to delete old files, you can choose the command --clean that will overwrite old files (with the same name) like --name "myFile"
Thank you! Very straightforward and great explanation!
Perfect! And the video is segmented too. Even better.
Super straight forward!
thanks for this, it was straight the point I really like how you looked into those other edgecases
I appreciate the detailed explanation and hiding the console part. Thank you.
thank you , so much , The only person who explains how to remove the console window!
You are the greatest teacher EVER!!!!
Yes she is tech very easily and easy steps no any complicated step and in reality this easy but another youtubers make you confuse
Exactly what I was looking for. Great explanation. Thanks!!!
Thankyou mam for helping me to build my 1st tool using Tkinter. You are amazing. Thanks a lot.
You are my first python teacher!
You're video exactly what I need into our Capstone project, Thanks a lot, May God Bless you🥰
Thanks a lot. I have been searching for this video for a long time. Fantastic explanation.
What to do if i have a folder with the code file and other bunch of files which are referenced in code by name only (not by full path)?should i just enter full paths and make the main code file into exe or is there any other method
I see the application opening time is very much noticable for this simple application. How do you think this would be even useful for bigger applications.
How to optimise the load time. Do you suggest any other ways to do it.
Thank you sis Hala , straightforward and great explanation!, keep this great work on , may Allah bless you
Excellent video!!, But one question, how do you prevent the executable from detecting it as a virus?
its a safeguard by windows to stop unknown executables from being ran. if you have a more official application, you could get a license from microsoft
Thank you so much. You're videos are great help to me. 😊
Very concise and clear, Well done
Very straightforward. Noo time waste 🙏 thx
made my tkinter app to an executable using pyinstaller. Getting error while running the app - "Windows cannot access the specified device , path, or file. You may not have the specified permission to access the item.
************** NEED HELP *****************
Thank You Great explanation. i have a question
How to build Executable (.exe) file from Python for all Versions of Windows (Seven,8,10,11)
i used PyInstaller in windows 10 ,but the Executable file compiled by PyInstaller does not work on Windows 7
I had 6 nested tkinter files and everything works, except my main program. None of the functions work, it throws tons of errors in the console, but when i run my project in python its all good, no idea, thanks for the shared info tho
Great video. Very clear.
However you configure the file explorer to display the file extensions
Very useful video for the beginner of python to convert the .py file to exe file type. But for my situation, i need to use the "python -m PyInstaller main.py --onefile -w"
Nice, but if I use other libraries, it does not include it. Any idea how to include libraries with pyinstaller? Thanks.
Very useful. thanks Hala. I have an issue, the final output has an app and an executable file. The app doesnt work in the sense that it only takes the inputs but does not open up the target folder in my program. it works only with the exe file and not the app file. So the app file is redundant. How do I merge the executable file and the app file.
it is a good video, it explains 3 questions I am facing. Thank you so much!
Perfect, I was looking for this! Subscribed already!!
explain it to you very well. Thanks for the demo 🤩
Amaaaazing..! I like your explanation, i could understand what i do and why..!!
Can you please convert customtkinter python app to exe.
I have tried it but I ended up with an error message
This is what happens
C:\Windows\System32>pip install pyinstaller
'pip' is not recognized as an internal or external command,
operable program or batch file.
please help
I successfully converted and executed the code. However, when I added a logo image to my code and attempted to convert it into an executable (exe) file, it didn't work as expected. Instead, it only created an image.png file. Please help me
I downloaded pyinstaller but still it says : 'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
what to do??
restart your terminal and try again
@@richardmagala6442 it still did not work unfortunately
I have the exact same issue: 'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
I've made sure that pyinstaller is installed correctly, so that isn't the problem.
.
A fix for this is "python -m PyInstaller" Then run whatever she said to do, this should fix your issues, worked for me, just make sure P in Py and i in Installer are both capitalized otherwise it WILL NOT work. Good luck and hope this helps! @Quantum Mechanic @NFxSwoops
Edit: Man how the hell do these @ things work lol
@@georgecarlinismytribe I fixed this recently, you have to modify your user enviroment variable to include
"C:\Users\[USERNAME]\AppData\Local\Programs\Python\PythonXXX\Scripts"
Once you've done this you have to uninstall and reinstall "pyinstaller"
then in your terminal use Pyinstaller to check if pyinstaller has installed correctly, Hope this helps.
this was really helpful, well-explained! thank you!!
Très bien expliqué. Thank you very much
What font are you using in vscode?
Do you need the destination computer to be running python for this to work ?
It worked well, thank you, well explained. The best tutorial for this topic.
Thanks for this! You absolutely deserve more subs!
i dont have a single file project.. actually my main file gets some functions from another file and some images from a 'assets' folder.. so will this work the same ?
I have the same question.
@@Guihcouto You use streamlit or gradio
Thanks for the information! Just a QQ - This would work in the same if I've several libraries others than Tkinter, like pandas, openpyxl, etc... right?
I am getting this error "C:\Windows\System32\Executable File>python -m pyinstaller --onefile -w Data_Entry_Form.py
C:\Program Files\Python311\python.exe: No module named pyinstaller" how can I fix it?
Thank you very much! This tutorial is really helpful!!
Thanks a ton. exactly what I was looking for and you answered all my questions.
Thank you for the great explanation!!
it is very clearly for your explanation
Does these PyInstaller exe files trigger antivirus scanners to block them?
Really helpful but in the case you have several files codependent from one another, how do you compile everything into one single exe?
Hi, I'm getting through the same. Have you already solve it?
you 3 are a bunch of goldfish 😂
Hey any solution?
Just watch the video past the 2nd half bruh
@@yeetyeetyeet1967 He meant if he have Images and so on
This is interesting, but I don't know where WINDOWS 12??? Please, help me with my quick line.
your a good teacher. JESUS bless you more
How to make an application (with multiple files and folders) built in other programming languages into an .exe?
A video like the one above which clearly explains the above question would be great
I receive this message "'pip' is not recognized as an internal or external command,
operable program or batch file." !!
Any suggestions?? (don't shoot me, i'm not a programmer. i just started to code :D)
Hi. Do you have a recommended app for the converted py file to exe file to convert it again, but this time to apk file (to run it on android).
Thanks
hey hala i hope you're doing good i have a pblm they give me this message 'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
Great video. Out of interest, why would someone opt to NOT use the one file flag?
how do i create a one fille but i need to add a necesary image ....
How can I modify the python version? Does it work with Anaconda python envirenment, too?
👍 But I have a question. How to do the same conversion if I have assets and database with a .py GUI file? Your response will help me.
Excellent presentation. Is there a way to include a logo?
Very clear instruction. Good work
My program keeps crashing, even when I follow the instructions, is there something else different I should do about this issue?? Thanks
Thank you mom, it worked very nice to me
Tkanks but why is treeview window messed up in exe file?
Thank you so much for posting such useful video
What would it be like to export if you use database and more files. Py?
that's what I was searching for, thanks a million go ahead you're spectacular
There is problem happen .. the interface is not appear .. the black window appear for a second then disappear .. I want the solution please
Do you know how to include the gspread module?, I got the error: Traceback (most recent call last):
File "main.py", line 3, in
ModuleNotFoundError: No module named 'gspread'
I resolved it!!! 😊
can u combine all pip modules in it?
Clearly explained thanks
That was really helpful, Thank you!
Amazing tutorial. Thank you
hey it gives me a error mesage saying:
Traceback (most recent call last):
File "AZORUS_AUTO_CLICKER.py", line 2, in
File "bdb.py", line 90, in trace_dispatch
File "bdb.py", line 114, in dispatch_line
File "pdb.py", line 340, in user_line
File "pdb.py", line 438, in interaction
File "pdb.py", line 401, in _cmdloop
File "cmd.py", line 126, in cmdloop
RuntimeError: input(): lost sys.stdin
tf do i need to do. it says that the problems is with import ctypes as ct
Very nice! This is a great video and resolves most of the issues I was concerned with! Two questions though: Does anyone know (video creator or comment reader) whether this will also work with custom TKinter? Also, if I am building something that requires reading in a file (like a CSV of data for example) is there a way with the "one file" approach to keep the CSV separate so you aren't encapsulating multiple MB of data into the .exe file (also because the data in the CSV will get updated from time to time and it would be nice to not have to recompile every time)?
hi, can we put py codes in to diff .py files and make individual exe files for a project ?
Thankyou beauty. Very usefull❤
You are greatly appreciated. Thank you.
Do you know how to do this in mac ? tkinter with pyinstaller on mac is something else I guess
will pyautogui works in exe file
whenever i use Tkinter, i get errors after i convert to an exe. not sure why, but it only works on computers that already have python installed. any other computers use the exe file, errors.... pretty lame. i like tkinter. however, when i use PyQt5, never any problems.
Excellent video. Many Thanks.
In my cmd, when i press enter after writing the command,,, it says that-
'pyinstaller' is not recognized as an internal or external command, operable program or batch file.
How can i solve this problem?
type this instead:
python -m PyInstaller --onefile (name of file you'd like to convert)
example:
python -m PyInstaller --onefile application_form.py
Very good explanation, congrats!
but what about When we have database connection file along with main file itnt working mam
Great tutorial, thanks a lot :)
Thank you for effort and helpful videos.
Hello, very useful indeed thank you. However what if I have a background image and program icon included in my script
When I convert to Exe and run on another computer it gives error of missing background and Icom in path xxxxxxx.
How can I resolve this issue?
Thanks in advance
i am also facing the same problem
I just put them in the same script as the application. it works very fine
@@richardmagala6442 I will try this out and let you know.
Thanks for sharing and support.
@@richardmagala6442 Hello Richard, i added the logo & the icon to the script folder and converted to exe but still getting this error of the missing files even on my laptop: _tkinter.TclError: couldn't open "pass background2.png": no such file or directory
@@alielsheikh8091 Hello, this is bit late but i hope you got the answer if you didn't, you need to put your logo and icon in the same folder as your exe, i had the same problem but once i put my logo and icon in the same folder as my exe it worked, hope this would fix your problem
I need to do this but with a Mac laptop which so far has been a big problem for me. Does someone knows how?
Yeah,it did compiled,but i cant run it (im using python 3.10.6 + customtkinter libary)
Really helpful learning python.
Just one quick question,
Does python need to be installed to run this exe, or we can run this exe in any system without python installed in it?
Same question
Needs to be installed
I tried this and Windows Defender Immediately said it detected a Trojan Horse (Win64/Malgent!MSR), and it only affected my .py (exe) file that was created... is this normal? I immediately removed it but I don't know what happened.
I have the same program, did you figure it out?
Why my exe file detect by windows defender? how to convert exe not detecting by windows 10?
How to deal with false positive after creating an exe file?