Auto-Py-To-Exe Tutorial - Converting Python Programs to EXE's

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 มิ.ย. 2022
  • Auto py to exe is a special Python library that can convert a Python .py file to an executable with all dependencies packed. Auto-py-to-Exe provides us with a GUI interface through which we can customize how we want our EXE generated.
    Website Link: coderslegacy.c...

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

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

    I have a task to create an exe file, I have seen many tutorials and only this one works, thank you very much

  • @franparis71
    @franparis71 5 หลายเดือนก่อน

    At last a code that works to incorporate added files in an .exe !!!!!!! Thank you very much !!! Simple, short and well-explained with a basic english easy to understand...

  • @unbracedfrog526
    @unbracedfrog526 17 วันที่ผ่านมา

    Dude this is very cool! I didn’t know how to fix the problem with additional files, but you helped. Although I don’t know what TRY, EXCEPT is, it’s cool, thanks

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

    took me 3 hours of trying before i found this tut and i finally got it thank you

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

    Thank you, if not for you I would be probably stuck for another 3 hours. Thanks!

  • @AngelofDarkness677
    @AngelofDarkness677 2 หลายเดือนก่อน

    OMG!
    Thank you so much!!! I struggled so hard, because I didn't know, why it wouldn't load my extra file, even if I added it as an extra file. Now it worked! +.+

  • @timkreutzkamp8519
    @timkreutzkamp8519 6 หลายเดือนก่อน

    Thank You!!! the explanation of the relative path is what helped me after hours of serching!!!

  • @Blazikan78
    @Blazikan78 5 หลายเดือนก่อน

    Thanks a lot!! was stuck at this since hours .. finally got the solution!! You got my sub!

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

    This solved my imagem compiling problem ! Your the best Ty !

  • @michalb.5728
    @michalb.5728 4 หลายเดือนก่อน

    Hello, it works very well, thank you. 👍

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

    Finally... The video I was looking for!

  • @laurenceparcon5147
    @laurenceparcon5147 3 หลายเดือนก่อน

    why some of the functions of my python app not working after i convert it to exe?

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

    hi at the output it give me a folder and an archive idnt find anyrhing name .exe

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

    Thank you for the help

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

    5:03 silly little cat

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

    Amazing tutorial!

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

    great tutorial, straightforward, detailed. thx

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

    HI, if i run it from terminal, the gui pops up but buttons arent clickable. If I run the py file download, it opens a bit of code in the IDE but nothing more?\

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

    If I have png images in a folder, for a project using Pyautogui. How can I make it into one file while exporting?

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

    how to make it there is a database with it and an other program using subprocess

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

    Thank you, worked like a charm!

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

    If I turned on Wi-Fi when I converting of to exe.Yesterday I did that work but there is an error they said "Exe file not Found".Please tell me should I turn on a network while doing that work

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

      WiFi should have nothing to do with it AFAIK. Some other issue is likely to be the cause.

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

    I have problem when i convert script into exe and the problem is : there is button worked will in script with tkinter gui but when i using (auto py to exe) the button does not working . any help ?

  • @marcusmerc615
    @marcusmerc615 5 หลายเดือนก่อน

    How to make for x32 system on x64 system? I made exe (my notebook x64) but error on x32 computer.

    • @coderslegacy5661
      @coderslegacy5661  5 หลายเดือนก่อน

      I think you might have to compile the program on x32 system. Then it would work for x32 systems. The same goes for operating systems. A program compiled on Windows won't work on Linux.

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

    very helpful and highly recommended. Thanks brother for such detailed content.

  • @abdel-rahmansayed6384
    @abdel-rahmansayed6384 2 ปีที่แล้ว

    You are a life savior! Thanks A LOT.

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

    Thanks for producing this.

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

    hello. Could you help me with auto update software EXE when we have a new release?

  • @AliAlqarni-lb3ok
    @AliAlqarni-lb3ok ปีที่แล้ว

    is there anyone who has done this successfully on mac?? because when I extracted the zip file I couldn't run the (run.py) file as mentioned in the video !!

  • @janeliu4430
    @janeliu4430 9 หลายเดือนก่อน

    Thank you so much for the video! I have a question, is resource_path() only needed for open another file? or is it need when read_csv ... etc? Thank you so much!

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

      It's needed any time you use a file, regardless of what it's type is, or what function is being used to load it.

  • @dale7890
    @dale7890 3 หลายเดือนก่อน

    Its is gonna work well? if I install the exe.file using python lang. in another computer?

    • @coderslegacy5661
      @coderslegacy5661  3 หลายเดือนก่อน

      Yes, it will. It won't "install" though, since it is a portable EXE. It will run without having to install. Another point to keep in mind, is that if you compile the EXE on windows, that EXE will only work on other windows systems. For linux, you will have to compile it on a linux system.

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

    i have a html file index.html, how can i do it with this?

  • @guilhermefelix6555
    @guilhermefelix6555 6 หลายเดือนก่อน

    Omg, you are amazing, i was breaking my for this ❤❤❤❤❤❤

  • @pritamdas6242
    @pritamdas6242 6 หลายเดือนก่อน

    It's work properly thanks👍

  • @dybacapforce3086
    @dybacapforce3086 8 หลายเดือนก่อน

    Thanks a lot!
    You just saved me

  • @RobertoSantos-ne4us
    @RobertoSantos-ne4us ปีที่แล้ว

    and how to convert .py to .exe but the .py has to be executed with the command: "poetry run py"

  • @ragnarok9131
    @ragnarok9131 6 หลายเดือนก่อน

    Thankyou! Very much!

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

    Hello, My program needs a module (cryptography) to be installed in order to run properly, how do I make the exe so that as soon as the EXE is launched, the module cryptography is installed first and then the program runs. (By installing module I mean "pip install cryptography")

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

      Shouldn't you be bundling the module into the EXE? As long as you have the module installed in your python environment, and you import it, it should be included automatically in the EXE.
      But if you insist on doing what you are doing, you should explore python libs that allow you to execute shell commands like "pip". You can use this in the start of your code.

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

    can you paste the fuction you used to solve the bug? gonna take a while to type that lol

  • @j7beamv3-kg7lw
    @j7beamv3-kg7lw ปีที่แล้ว

    when i click on the set up it opens visual studio

  • @mfashion1232
    @mfashion1232 8 หลายเดือนก่อน

    This guy is awesome

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

    Where is the code in the end I can't find it , thx soo much that's was very helpful

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

    thanks for the tuto bro

  • @yurilucka3000
    @yurilucka3000 8 หลายเดือนก่อน

    Excelente video!!!
    Muito obrigado.

  • @The-MaliX
    @The-MaliX 6 หลายเดือนก่อน

    bro sounds like Edna Mode from the Incredibles

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

    Left out how to prevent it from creating a massive .EXE if you have lots of libraries installed which get bundled even if not used in your script

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

      That is a very detailed topic, not meant to be covered in a introductory video. Here are two links on videos showing how to reduce EXE size.
      Virtual envs: th-cam.com/video/gsSjIx_uFG4/w-d-xo.html
      UPX: th-cam.com/video/4rDK9JBr6Fs/w-d-xo.html

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

    i followed every single step you did and i see images of my project while running one-directory exe but i dont see any of my additional files while running one-file exe. Any suggestions?

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

      That's because the additional files in one file mode get included into the EXE! If you don't want this to happen, just don't add them, and just copy them to the folder where the EXE is, after the EXE is compiled.

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

    hello , i have managed to make my app run properly but im having issue with a function that uses smtplib , i dont know how to add environment variables with auto py to exe can you tell me how ? also thanks for the vid it helped a lot with the setup

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

      I ran into this issue not long ago. If you want to add environment variables, you can use the os module by saying os.system(fr'cmd /c "setx PATH "{file_path};%PATH%"'). In my case I was trying to add a file_path to my PATH environment variables.
      I hope this helps

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

    What if I need to add folders with Sound, Images etc, I dont get it to work.

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

      You include the path to the folder instead of the individual files. Just make sure to access them properly in the code

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

    im running into a problem where its not taking into account the libraries im using.

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

    it doesn't work to me... it open a cmd with ramdon codes and suddenly close it.

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

    how do you include imports like pyttsx3 when converting?

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

      These are normally all included by default. Pyinstaller automatically detects all libraries in your Python environment and includes them in the exe.

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

      @@coderslegacy5661 thank you!

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

    Thank you very much, this tutorial has helped me a lot with the error I had with the library.
    It was not detecting the paths of the images correctly, apparently there is a bug when using the . to indicate the folder.
    Thank you very much for this tutorial.

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

    Thanks bro

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

    @coderslegacy5661 Can you please create a small video showing how to use this to create package for robot framework using selenium library?

  • @unl0ved-valorant
    @unl0ved-valorant ปีที่แล้ว

    So good all you cool

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

    i try to open it and it just insta closes

    • @coderslegacy5661
      @coderslegacy5661  28 วันที่ผ่านมา

      The exe? Or the auto-py-to-exe window?

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

    BROOOO, I FUCKIN LOVE U, was trying to use it for like one h and always getting a error on the terminal about it not finding the Auto Py to Exe, if u didnt tell the github thing i would give up, THANKS.

  • @pokelucas7902
    @pokelucas7902 7 วันที่ผ่านมา

    OK.

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

    bro it didnt worked for me pls help File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\os.py", line 225, in makedirs
    mkdir(name, mode)
    PermissionError: [WinError 5] Access is denied: 'C:\\WINDOWS\\System32\\output'
    Complete. showing this erorr

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

    Sir,
    I am getting an error because
    i don't have additional files
    How to fix that

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

      That means you are trying to use some additional files in your code, like an image. To fix it, simply include the filepaths of these files into your EXE. Auto-py-to-exe gives you an option for this, as we discussed in the Video (and also demonstrated)

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

      I don't have any additionele file.
      I will send you the the error message.
      Hopely you can help me.
      Anyway happy Diwali

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

      I am getting the following error:
      Unhandled exception in script
      Failed to execute script ' main_script' due to unhandled exception:[Error 2]. No such file or directory:
      'C:\\User\\autar\\AppDat\\Temp......
      Please help me with this
      I am waiting for your reply

  • @NVidea-yz1fg
    @NVidea-yz1fg ปีที่แล้ว

    Okay!

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

    im having problems with auto-py-to-exe, so im just running the code in the terminal(the code that shows at the bottom of the window), but I get this error:
    SystemError: Failed to process binary '/Users/myname/Library/Application Support/pyinstaller/bincache00_py310_64bit/arm64/adhoc/no-entitlements/Python.framework/Versions/3.10/Python'!

  • @ifortog
    @ifortog 5 หลายเดือนก่อน

    when i run run.py it opens in vs code

    • @MattWoodYT
      @MattWoodYT 5 หลายเดือนก่อน

      mine does the same, any solution?

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

    cool

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

    doesn't work for me

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

    Cool beans

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

    is it also adds libraries?

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

      Yes, it adds any libraries you have installed/imported into the EXE.

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

    GRACIAS

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

    ok

  • @user-nr9ke4eg9v
    @user-nr9ke4eg9v 3 หลายเดือนก่อน

    OK

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

    Want to make a tool for option trading...can u help...ready to pay

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

    My program is marked as virus

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

      Yes, that's going to happen alot actually (unfortunately). The anti-virus (e.g. windows firewall) will detect your .exe as an unknown source (no certified publisher) which makes it flag you often. To solve this, you actually need to purchase a code signing certificate for your EXE. This is basically an organization which can certify and vouch for your EXE, essentially giving your EXE a VIP ticket to clear the firewall. But its going to cost you atleast $200 - 400 yearly from what i 've seen

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

    "okay"

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

    PermissionError: [Errno 13] Permission denied: 'C:\\Users\\PC\\AppData\\Local\\Temp\\tmpqr6iltfr\\application\\Creal.exe.notanexecutable' help

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

    This auto py program really sucks lol

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

    after I run exe file it exit and close any idea why ? thx

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

      Unfortunately there can be many possible reasons for such an issue. Maybe you have an error in your code which is crashing the EXE. Like an image or file location which is incorrect (maybe you didn't add the required files properly). This is a common issue when using the --onefile mode.
      Another suggestion would be to reinstall/update pyinstaller. You can also try adding an "input()" function at the end of the code.

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

      @@coderslegacy5661 just fixed it reinstalling all python and path and deleted appdata folders and temp no idea why