Standalone Python EXE Executable - Python Tkinter GUI Tutorial #40

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 768

  • @bitpilot79
    @bitpilot79 4 ปีที่แล้ว +696

    Use the flag --windowed, so that black console window won't show up.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +73

      perfect! thanks!

    • @Kroenenprime
      @Kroenenprime 4 ปีที่แล้ว +19

      You can also just save your file as .pyw it does the same

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +42

      @@Kroenenprime That only works if you already have python installed on your computer...most people don't.

    • @davitvekua6878
      @davitvekua6878 4 ปีที่แล้ว +1

      oohh man thank u so much!

    • @vishvanthsaravanakumar3078
      @vishvanthsaravanakumar3078 4 ปีที่แล้ว +27

      --onefile -w (for one file without triggering console)

  • @MadhuKraft
    @MadhuKraft 4 ปีที่แล้ว +192

    Before you turn it into a exe, rename the file to .pyw instead of .py
    That will get rid of the command prompt that always shows up

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +76

      or just use the -w flag when building the exe

    • @mohammadrezasharif843
      @mohammadrezasharif843 2 ปีที่แล้ว +1

      I tried this but "Ordinal Not Found" error shows up when I run the exe.

    • @unknowngalaxy7850
      @unknowngalaxy7850 2 ปีที่แล้ว +1

      Thank you very much

    • @Brimstoned_
      @Brimstoned_ ปีที่แล้ว +2

      NO in the pyinstaller just use --noconsole and no console will apear

    • @youzuko
      @youzuko 11 หลายเดือนก่อน

      @@Brimstoned_ i tried to use the --noconsole but windows flagged it as virus. same with -w. no idea why, it works just fine without getting rid of the console.

  • @popotoITA
    @popotoITA 2 ปีที่แล้ว +32

    in order to avoid the "command window" to pop up when you run the executable, you just have to write "-- noconsole" along with the pyinstaller call

  • @Seddik-hf4pc
    @Seddik-hf4pc 4 ปีที่แล้ว +3

    pyinstaller -w --onefile --icon=codemy.ico entry_height.py
    -w (to avoid cmd console)
    Thanks for tutorial man!

  • @TaskForce141cod
    @TaskForce141cod 3 ปีที่แล้ว +8

    Adding --noconsole does the job perfectly!

  • @Matt-ke7mc
    @Matt-ke7mc 4 ปีที่แล้ว +22

    This was great!! So straightforward and useful. I was able to build a front end GUI app for my python script at work because of this video. Awesome job man.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      Glad it helped!

  • @scoliidaeai493
    @scoliidaeai493 3 ปีที่แล้ว +19

    save the .py file as a .pyw , it runs the exact same as a regular python file but runs without the shell window

    • @SanyogLamsal
      @SanyogLamsal 3 ปีที่แล้ว +2

      Underrated Comment

    • @DanielMemeSmith
      @DanielMemeSmith 3 ปีที่แล้ว

      @@SanyogLamsal not underrated. see other comments

    • @SanyogLamsal
      @SanyogLamsal 3 ปีที่แล้ว

      @@DanielMemeSmith This one worked for me.

  • @jacinthompeteye3037
    @jacinthompeteye3037 3 ปีที่แล้ว +9

    Great tutorial, we can also add '--noconsole' in the command prompt to hide the black window

    • @aszaw5342
      @aszaw5342 ปีที่แล้ว +2

      or simply -w

  • @officialkeeto
    @officialkeeto 2 ปีที่แล้ว +5

    -w (or --windowed, or --noconsole) This will get rid of the blank CMD from popping up during launch
    --name="" This will name the app differently from your . py file
    --icon= (note, if you have your images in sub folders you need to use the path to that folder. Example: images/lock.ico
    --onefile (this one is hit and miss. Sometimes I do without this one to get app running right)

  • @arturdashev5353
    @arturdashev5353 2 ปีที่แล้ว +1

    IT'S ALWAYS THE UNDERRATED VID THAT'S LEGIT! THANK YOU!

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว +1

      Thanks...but I wouldn't call a video with 200,000+ views underrated ;-)

  • @raghvendra87
    @raghvendra87 4 ปีที่แล้ว +5

    Thank you Mr. White!

  • @unknowngalaxy7850
    @unknowngalaxy7850 2 ปีที่แล้ว

    Thanks for this tutorial! Finally my school project has been completed. 🙂

  • @Iamzaidmnr
    @Iamzaidmnr 4 ปีที่แล้ว +13

    wowwww! i just made my first executable file! Thanks.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +5

      Awesome!

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      @زاكي Zaky did you pip install it?

  • @RDKCREATIONS
    @RDKCREATIONS 3 ปีที่แล้ว +1

    i have a json file in my project how can i do it

  • @funshorts1248
    @funshorts1248 4 ปีที่แล้ว +6

    What if our program uses some images ? can we still run the exe file isolated without those ..? since i got an error

    • @akshitmiglani5419
      @akshitmiglani5419 4 ปีที่แล้ว

      You'll have to put that image into the temp directory where the back-end files of stand-alone app are created.

  • @Sergio-td7mn
    @Sergio-td7mn 4 ปีที่แล้ว +3

    I watched many parts of the series and its awesome, thank you John!

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +2

      Glad you're enjoying it!

    • @kingsleyemeka2136
      @kingsleyemeka2136 4 ปีที่แล้ว

      Yeah, me too
      You're a great teacher

  • @AdAstraCan
    @AdAstraCan 3 ปีที่แล้ว

    I just signed up for the full membership. Thanks for making useful videos.

  • @code6259
    @code6259 3 ปีที่แล้ว

    your a boss sir i watched all your videos there amasing sirtenly with your dog

  • @vicesodan
    @vicesodan 2 ปีที่แล้ว +5

    Tip: Application won't start without icon next to it on another pc if you use an icon instead of tkinter default icon on its windows, check the path of the icon in python code also

  • @nashonmumo5679
    @nashonmumo5679 4 หลายเดือนก่อน

    This is awesome. Like and subscribed to my best presentation ever!

    • @Codemycom
      @Codemycom  4 หลายเดือนก่อน

      Welcome aboard!

  • @holycow4889
    @holycow4889 3 ปีที่แล้ว +1

    I had several issues when i was triying to turn my TK application into an .exe file.
    In case you have some issues as well(not opening etc) use auto-py-to-exe.
    >>pip install auto-py-to-exe < to install it
    >>auto-py-to-exe < to open it
    -I hope i could help for those people that are having problems :)

  • @allenhirahara2242
    @allenhirahara2242 4 ปีที่แล้ว

    THANK YOU. I was trying to look up how to make an executable .exe, but the program that you used to make the .exe actually helped me with my program. I had a problem with inputting the text into the same window and the "myLabel = tkinter.Label(root, text) " helped. Thank you!

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Glad I could help!

  • @manigandandmx
    @manigandandmx 3 ปีที่แล้ว +1

    Bitdefender antivirus is detecting the stand alone EXE file as virus and keeps on removing it as soon I create it. Please advise.

  • @vishalsalvankar9373
    @vishalsalvankar9373 4 ปีที่แล้ว +2

    Hey John,
    I was successful in creating python exe file, but while using tjr same file on another computer, it got detected as a virus. Basically any exe file which i create is shown as a virus. How can i solve this problem other than adding the file as exception in any antivirus software?

  • @codegeassprogramming
    @codegeassprogramming 3 ปีที่แล้ว +1

    If we import other libraries the converted exe file do not have that libraries

  • @stephenwilson0386
    @stephenwilson0386 2 ปีที่แล้ว +2

    I'm having issues with Windows Defender flagging my exe file as a Trojan. It only seems to happen when I use the --onefile flag, but it defeats some of the purpose of packaging my script if my coworkers have to keep the two directories as they are in order to use the program. Sending one executable file would be much cleaner.
    Does anyone have any suggestions?

  • @jimbowhitt3816
    @jimbowhitt3816 2 ปีที่แล้ว +1

    hey, great video here helped me alot. However i have a image file in my code, which when i create a .exe it launches but flags a error saying the image can't be found. am i missing something here, in my code i have the 'my_img = ImageTk.PhotoImage (Image.open("image.png"))' which maps to the location of my image in my code and works when operating though python directly. when operate through .exe basiclly says "failed to execute due to unhandled exception: [Errno 2] no such file or directory: 'image.png'

  • @RyanDanielG
    @RyanDanielG 3 ปีที่แล้ว

    wow cant believe I hadn't run across this before. thanks, mate!

  • @Elijah3_86
    @Elijah3_86 3 ปีที่แล้ว

    Did you make a later videos for better ways to do this? Pyinstaller makes the program run really slowly on another computer

  • @MitraElectronics
    @MitraElectronics 3 ปีที่แล้ว +1

    Thanks for this tutorial, I had been trying to do that since ages. Really appreciate your work.

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว +1

      Glad you liked it

  • @hareknowsnone
    @hareknowsnone 4 ปีที่แล้ว +2

    Try to run this 'standalone program' in any other windows computer( if possible except windows10 ) . It does not work for me at least.
    Also will it work on other os?

  • @adotac
    @adotac 2 ปีที่แล้ว

    how will this work if my program needs to have atleast multiple scripts? do I just build from my main script?

  • @benjaminodriscoll6605
    @benjaminodriscoll6605 4 ปีที่แล้ว +3

    Thanks for the video and the entire playlist, it has been so helpful! Subscribed and liked!

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Glad you're enjoying them!

  • @ShashwataSaha
    @ShashwataSaha 3 ปีที่แล้ว +1

    What if my python project got multiple files linked with eachother?

  • @BrazybranButOutside
    @BrazybranButOutside 3 ปีที่แล้ว

    The computer I coded the .py file on, once turned into an .exe file, still works perfectly, until I move it to another computer for download. When I do so its detected as a virus. I would like to sell software soon so this is an issue I'd love to eliminate. I'm still learning, but to test converting .py into .exe I made a simple calculator program. Not very modern visually and not too many lines of code. But it still is flagged on other computers. Help plz!

  • @carlosortega7363
    @carlosortega7363 3 ปีที่แล้ว

    My Command Prompt does not recognize "pip" install unless I am in the directory with pyinstaller. Is that how it's supposed to work? Its seems like in all of the examples they just run "pip install pyinstaller" from wherever.

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว +1

      No, you need to reinstall python. Click the "add python 3.9 to path" box during installation

    • @carlosortega7363
      @carlosortega7363 3 ปีที่แล้ว

      @@Codemycom That worked, thanks!

  • @nihalthannegedarapremaratn2352
    @nihalthannegedarapremaratn2352 3 ปีที่แล้ว

    if it is a big program (with dashboard and other..mysql), can we run like this..?

  • @isurangacooray9238
    @isurangacooray9238 4 ปีที่แล้ว +7

    You're the best sir ❤️ thanks a lot for this whole playlist

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +2

      You're very welcome!

  • @rajatpatel1817
    @rajatpatel1817 4 ปีที่แล้ว +4

    For people who have used images and icons in their code, you need to have those images and icons in the same folder as in code for it to work.
    a little tip here: keep all your images and icons in a single folder such as 'resources' and change your code so that those images can be read from resources directory. this way, you will only have one exe file and the rest in the resouces folder. clean and efficient.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Good tip

    • @mukulM2010
      @mukulM2010 4 ปีที่แล้ว

      Hey I'm getting the "File not found" or "File not defined" error as I have images and sounds in my python code.
      How do I set the file path of these images in my python code so that the executable works on any other computer?
      Like even if I copy them in a single folder... the .filepaths need to be updated in the .py file

    • @thedude6213
      @thedude6213 2 ปีที่แล้ว

      @@mukulM2010 Hey, so i can see you commented this a year ago but I'm trynna figure this out myself. Did you find a solution?

    • @djbroake9810
      @djbroake9810 2 ปีที่แล้ว

      @@thedude6213 'folder/file.x' should work in the scrip, then keep x files in x folder next to the exe.

  • @tomoyaokazaki9915
    @tomoyaokazaki9915 3 ปีที่แล้ว +1

    Sir I made the app with pyinstaller I opened it in my pc its working totally fine but when I shared only the .exe file of my app to my friend
    then in his pc that app is not opening
    [He goes in the location where my app is saved and clicks it and installs it and then when he opens only that black command line window appears then after 2-3seconds the command line box disappears and the application window doesn't appears.]
    Help me fix the problem sir

  • @lemartien25000
    @lemartien25000 10 หลายเดือนก่อน

    Well, but if you have to add a database for example tree_crm.db to the exe..how can we proceed in pyinstaller ?

    • @Codemycom
      @Codemycom  10 หลายเดือนก่อน +1

      I don't have videos on that

  • @Rshers
    @Rshers 2 ปีที่แล้ว

    How do i change the icon when using the -m (No console)?

  • @omarabdelfattah9836
    @omarabdelfattah9836 3 ปีที่แล้ว

    very good video and very easy method
    thanks a lot

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว +1

      Glad you liked it

  • @giuseppecipolletta1443
    @giuseppecipolletta1443 4 ปีที่แล้ว +4

    Hi John! Thanks for this! What if I have a picture in my code? Is there a way to specify it as we do with the icon?

    • @giuseppecipolletta1443
      @giuseppecipolletta1443 4 ปีที่แล้ว

      Ive tried with --add-data but it doesn't seem to work: pyinstaller.exe --onefile --icon=Icon3.ico --add-data="Image.png;img" PySprings.py

  • @severinmarco
    @severinmarco ปีที่แล้ว

    hi, is it possible to include an icon in the title bar so that when I create an executable .exe it is incorporated in it without having to carry it around every time? for example if I change pc?

    • @Codemycom
      @Codemycom  ปีที่แล้ว

      yes, check the docs.

    • @severinmarco
      @severinmarco ปีที่แล้ว

      @@Codemycom Thanks for your quick response, I followed your video, the problem lies in the fact that when I create the executable file and move it to another PC, if the .ico file is not present, it also returns an error because it cannot find the path

    • @Codemycom
      @Codemycom  ปีที่แล้ว

      @@severinmarco exe are stand alone files. Read the docs to learn how to include your icon.

  • @cyberdemon667
    @cyberdemon667 2 ปีที่แล้ว

    My executables only work on the 64 bits version of Windows, how can I make executables for the 32 bits version?

  • @shakibrahatchowdhury626
    @shakibrahatchowdhury626 2 ปีที่แล้ว

    What would happen if the end user doesn't have all the dependencies available in their system? For example, someone downloads the exefile from internet and the user doesn't have phyton installed in the computer; what that still run?

  • @kamisema
    @kamisema ปีที่แล้ว

    so what is the professional way to create an executable file ? if pyinstaller isn't the best way ?

  • @Zhisaoka
    @Zhisaoka 2 ปีที่แล้ว

    Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
    any help?

  • @ToxicRa1n4
    @ToxicRa1n4 2 ปีที่แล้ว

    any insight on how to package Selenium with this? Thanks!

  • @Ev-001
    @Ev-001 7 หลายเดือนก่อน

    Do you have a video of how to compile multiple .py into an exe, I also am using CTk as well. I tried pyinstaller but its missing dependencies

    • @Codemycom
      @Codemycom  7 หลายเดือนก่อน

      no

    • @Ev-001
      @Ev-001 7 หลายเดือนก่อน

      @@Codemycom ended figuring it out with pyinstaller =)

  • @slasaru
    @slasaru 3 ปีที่แล้ว

    Thank you so much for the info that I can clean up everything besides the main file!

  • @fcmorena246
    @fcmorena246 4 ปีที่แล้ว +2

    Thanks for the course, i really appreciate it, i kind of have a little problem.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      ok?

    • @fcmorena246
      @fcmorena246 4 ปีที่แล้ว +1

      @@Codemycom I lack self-confidence when coding.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +2

      @@fcmorena246 it comes with practice

    • @fcmorena246
      @fcmorena246 4 ปีที่แล้ว

      @@Codemycom okay thanks
      Sir i have another problem
      Yesterday I created a text editing software with pyinstaller, when I run the program it pops up an error.
      (Fatal Error Detected
      Failed to execute script ...

  • @rogerperez9856
    @rogerperez9856 ปีที่แล้ว

    Hello, I have created an app in Python which must connect to a database, but I want to extract the credentials from the code and make an executable to put it into production. The problem is that one way or another the user has access to the credentials, whether they put them in the code or include the .env file with the executable. Anyway, I don't know what to do to prevent users from having access to the credentials, I would like to know how I can do so that only the app has access to the credentials. Greetings.

  • @sammiyin3516
    @sammiyin3516 4 ปีที่แล้ว

    Suuuuuuuuuuuuper helpful tutorial. Thank you John!

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Happy to help!

  • @himanshubhatti4717
    @himanshubhatti4717 4 ปีที่แล้ว +2

    sir I did it..but problem is that when I double click on my final .exe file only black window opens not the GUI window

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      try the -w flag in the command

  • @tishaanants
    @tishaanants 3 ปีที่แล้ว

    Which method do u prefer for creating a standalone exe

  • @x6Blade9x
    @x6Blade9x 4 ปีที่แล้ว

    This application can be ran on a computer that hasn't installed Python and set the file path ?

  • @praveendesu
    @praveendesu 2 ปีที่แล้ว +1

    I installed pyinstaller successfully, but I'm getting this error when trying to convert a python file to .exe. Please help.
    'pyinstaller' is not recognized as an internal or external command,
    operable program or batch file.

    • @Codemycom
      @Codemycom  2 ปีที่แล้ว

      Sounds like you didn't install pyinstaller correctly afterall

  • @varghapayandeh3024
    @varghapayandeh3024 4 ปีที่แล้ว +1

    Thank you for the video. Of couse why not using the "--noconsole" argument to the command so it wouldn't create that console?

  • @flaviomonteiro1414
    @flaviomonteiro1414 3 ปีที่แล้ว

    Hey I do belive adding --noconsole when generating the .exe does remove the black console window... I do not tested yet on a computer without python installed but if works let me know!

  • @wickedsnuk3812
    @wickedsnuk3812 7 หลายเดือนก่อน

    You are on windows right ? in mac it doesnt bring all the necessary files like this, I mean I cannot share it with others

  • @gaurideshpande3741
    @gaurideshpande3741 3 ปีที่แล้ว

    I have a machine learning project where I have ised svm.svc and a some GUI ,also this project needs dataset....can I convert it to .exe file?

  • @christiankusi2974
    @christiankusi2974 4 ปีที่แล้ว

    need your help
    i created a exe file with pyinstaller but each time i open it close immediately but when i run it from the PyCham IDE it works. please help me convert it into an exe file

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Sorry, I don't do pycharm

  • @aayushgupta6914
    @aayushgupta6914 3 ปีที่แล้ว

    Now using both --windowed and --onefile flags the exe file as a virus!! Anyway to handle that and hide that popup command prompt??

  • @JS-ik4kb
    @JS-ik4kb 4 ปีที่แล้ว

    does user need to install phyton at thier end or they can use it as a desktop application without installing phyton?

    • @naxdax100
      @naxdax100 4 ปีที่แล้ว +1

      they wont need to install python

  • @khaledkhalaf1884
    @khaledkhalaf1884 3 ปีที่แล้ว

    Hi, I come back and see this video because after creating the exe file the tkinter entry dont accept the paste shortcut why is that? and how can I fix it?

  • @abhirammelattur9037
    @abhirammelattur9037 4 ปีที่แล้ว +9

    Hey Wait!! You are Heisenberg from BreakingBad right?¿

  • @tobias2688
    @tobias2688 3 ปีที่แล้ว +1

    What can I do when my python file relies on some external libraries? Would I have to pack the whole library into the .exe file? Thanks!

    • @djremedy1694
      @djremedy1694 3 ปีที่แล้ว

      Pyinstaller has the built in feature to sweep through your python script, find all the import statements, and then copy those libraries during the conversion process

  • @aklimaakterrimi3814
    @aklimaakterrimi3814 3 ปีที่แล้ว

    Hey elder.. i have done everything, instead of running my exe , it shows error 'unhandled exception' .. what should i do?

  • @nemithafernando5756
    @nemithafernando5756 3 ปีที่แล้ว

    I made a text editor and when I was convert it to an exe file Windows defender is blocking it Please I want your help

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Windows defender blocks any apps it doesn't recognize, not just tkinter.

  • @Mirador1
    @Mirador1 2 ปีที่แล้ว

    Is it impossible to save information in an external file with these standalone files? Like settings, etc. I mean, like internally.

  • @uninho1985
    @uninho1985 3 ปีที่แล้ว

    How can I do that when I use a tkinter GUI and selenium with a dir "User Profile" for my chrome profile?
    I keep getting the error "failed to executescript". I tried adding the folder, I tried adding it manually after compiling the .py file to .exe and so on. Nothing worked for me.
    Any tip?

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      sorry I don’t use selenium so I couldn’t say

  • @mahanaatma910
    @mahanaatma910 3 ปีที่แล้ว

    i learned how to put icon in exe file so thankyou

  • @ashokmahala5313
    @ashokmahala5313 ปีที่แล้ว

    is python should be installed in other system to run the exe file?

  • @elysonpanolino1162
    @elysonpanolino1162 2 ปีที่แล้ว

    Is there a way that I can do this even deleting the image file?

  • @joselatorre5667
    @joselatorre5667 3 ปีที่แล้ว

    I have a little problem, my app has images taken from an specific directory. If I want to distribute it, people would have to install these images too?. And if so... The python code takes the image from that specific directory, but for the client it would not be the same directory, so it would bring an error. Is there a way to get rid of this problem?

  • @matthewburton3469
    @matthewburton3469 4 ปีที่แล้ว

    Just wondering if firebase is supported by pyinstaller because I am struggling to try and convert my .py file with tkinter gcloud and smtplib into a .exe

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      No idea, sorry

  • @sinuheso
    @sinuheso 4 ปีที่แล้ว +1

    Hi there,thanks for your videos. I have a question, im working in a GUI using tkinter, the python file size is 257 KB. When i create executable using pyinstaller, the size of the GUI is 100 MB. What could be the reason?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว +1

      exe files are bigger. that's common

    • @7s9n
      @7s9n 2 ปีที่แล้ว

      You must create a virtual environment for your project 🙂

    • @sinuheso
      @sinuheso 2 ปีที่แล้ว +1

      @@7s9n Thank you

    • @7s9n
      @7s9n 2 ปีที่แล้ว +1

      @@sinuheso Your welcome 💛

  • @emperorj4783
    @emperorj4783 3 ปีที่แล้ว

    The guys who disliked are ppl who hate Python
    Python is a legend and so is Codemy.com

  • @apljs
    @apljs ปีที่แล้ว +1

    I'm struggling with installing pyinstall

  • @AyanKhan-dc3eu
    @AyanKhan-dc3eu 4 ปีที่แล้ว

    Help me please it's showing
    Fatal error: python does not have a pre complied bootloader for your platform. When i googled about it they are suggesting to make your own one I don't actually get there procedures. I'm just a beginner.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      I have no idea what's going on there. What's the exact error?

    • @AyanKhan-dc3eu
      @AyanKhan-dc3eu 4 ปีที่แล้ว

      Fatal error: PyInstaller does not include a pre-compiled bootloader for your platform. For more details and instructions how to build the bootloader see

    • @AyanKhan-dc3eu
      @AyanKhan-dc3eu 4 ปีที่แล้ว

      Well i figured out that it is due to bit version difference between system and python. I will install python 64bit then let you know if it solves my prob. Thanks for replying 😊

  • @sailendrachettri8521
    @sailendrachettri8521 3 ปีที่แล้ว +12

    .exe is cool But how can I create for mac or Linux :)

    • @rayofvictory
      @rayofvictory 3 ปีที่แล้ว +1

      You have to use a Mac or a Linux box to target for those environments. You can’t use Windows PC to get Mac app.

    • @sailendrachettri8521
      @sailendrachettri8521 3 ปีที่แล้ว

      @@rayofvictory I am using Linux but can't able to create for Linex itself :(

  • @sunnypepple6571
    @sunnypepple6571 ปีที่แล้ว

    Where can I distribut my GUI App?

  • @shanvantharunmozhi
    @shanvantharunmozhi 4 ปีที่แล้ว +10

    Dude use --windowed or -w
    Then it will hide the console.
    Or just use auto-py-to-exe...

    • @mikaelh9584
      @mikaelh9584 4 ปีที่แล้ว

      --noconsole also works

  • @Lweirday
    @Lweirday 3 ปีที่แล้ว

    what should i do and how to use pyinstaller if i have one python file and one folder contain database and other folder contain images??????

  • @mukulM2010
    @mukulM2010 4 ปีที่แล้ว

    Hey I'm getting the "File not defined" or "File not found" error as I have images and sounds in my python code. How do set the file path of these images in my python code so that the executable works on any other computer?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Use absolute path's In your code, instead of 'file.mp3' type 'c:/whatever/file.mp3' ?

  • @cheasteral7636
    @cheasteral7636 4 ปีที่แล้ว +1

    Sir can I convert py to exe including sqlite3 database imported in my python app?

    • @sirfaboyt3395
      @sirfaboyt3395 3 ปีที่แล้ว

      Do you have now a solution? I face the same problem right now... 11 Months later xD I hope you can help me now haha

  • @peterviglietta4207
    @peterviglietta4207 4 ปีที่แล้ว

    I used pyinstaller to compile my python tkinter program and it won't launch the tkinter window when I run it the executable. no errors upon compiling.

  • @dandisinfographicchannel1346
    @dandisinfographicchannel1346 4 ปีที่แล้ว +1

    hello, i have a problem with this method when i try to run the program on my other pc

  • @SabotageLuke
    @SabotageLuke 4 ปีที่แล้ว

    I get this error: 'pyinstaller.exe' is not recognized as an internal or external command
    Please help!

    • @echuidor
      @echuidor 4 ปีที่แล้ว

      I guess you haven't installed it

    • @SabotageLuke
      @SabotageLuke 4 ปีที่แล้ว +1

      Flash Learning I’ve installed it multiple times... I did pip install pyinstaller and it says it’s already installed. I tried it in admin cmd prompt and in normal cmd prompt

    • @echuidor
      @echuidor 4 ปีที่แล้ว

      @@SabotageLuke Try upgrading pip and then installing again

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      use the git bash terminal not the command prompt.

    • @SabotageLuke
      @SabotageLuke 4 ปีที่แล้ว +1

      @@Codemycom Ok, I will try that. Thanks!

  • @aneeshprince6300
    @aneeshprince6300 4 ปีที่แล้ว

    What could be the potential reason if the app doesnt work in other windows machines...like i am getting fatal error if opened in other device

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Sorry, I don't know

  • @manojkumarleo
    @manojkumarleo 4 ปีที่แล้ว

    Awesome Sir, This helps a lot.

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Glad to hear that

  • @TechWithAminjon
    @TechWithAminjon 3 ปีที่แล้ว

    Hello, after converting the python file to exe format, if I enter the program, there is a tkinter icon. Is it possible to delete it or can I add another image?

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      don't we add another image in the video?

    • @TechWithAminjon
      @TechWithAminjon 3 ปีที่แล้ว

      Hello, thanks for the reply but i was asking for something else.

    • @TechWithAminjon
      @TechWithAminjon 3 ปีที่แล้ว

      For example, I made an exe program of a program I wrote in python, I put a picture in the zancho on the man, but when I enter the program, in the upper left part of the program, the tkinter icon is not lost.

  • @gbilo24
    @gbilo24 2 ปีที่แล้ว

    Use thanks for this amazing free content!

  • @RameshAkula
    @RameshAkula 3 ปีที่แล้ว

    Getting this error while converting into executable file in mac OS:
    Traceback (most recent call last):
    File "/usr/local/bin/pyinstaller", line 6, in
    from PyInstaller.__main__ import run
    File "/usr/local/lib/python3.7/site-packages/PyInstaller/__init__.py", line 45, in
    import pkg_resources
    File "/usr/local/lib/python3.7/site-packages/pkg_resources.py", line 1479, in
    register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
    AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
    (base)

  • @MRL290975
    @MRL290975 3 ปีที่แล้ว

    my pyinstaller executable takes a long time to open... how can i speed it up?

  • @techwithdavid06
    @techwithdavid06 4 ปีที่แล้ว

    Hey I don't know if pyinstaller works on python 3.6 because I'm getting an error when I try to pip install pyinstaller

  • @yashkapure8511
    @yashkapure8511 3 ปีที่แล้ว

    Hello Sir, I am creating an GUI Using Qt Designer as a front end okay.... and also made my python program as an backend but I am not getting how to bring some of the backed functions look working on my frontend screen... Is there any possibility to contact you? so that I could explain my doubt properly

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      No sorry, I don't do individual consulting

  • @sonamtshering3817
    @sonamtshering3817 ปีที่แล้ว

    how to create a document based desktop application with its own file extension just like other document editing software like word