Pyinstaller with Virtual Environments (venv)

Sdílet
Vložit
  • čas přidán 31. 12. 2022
  • In this Python tutorial, we will discuss how to optimize your Pyinstaller EXE's using Virtual Environments. We will be using the "venv" library to create the Virtual environment for Pyinstaller.
    Command Prompt (Windows): tutorial\Scripts\activate.bat
    Windows PowerShell: tutorial\Scripts\Activate.ps1
    Linux (Bash): tutorial\bin\activate
    Note: For VS Code users, "tutorial\Scripts\activate.bat" might not work. (Doesn't work for me). So leave out the ".bat" extension and try it again (until the virtual environment name appears in the start).
    Website Link:
    coderslegacy.com/pyinstaller-...
    Related Links:
    UPX Tutorial -

Komentáře • 16

  • @Daniyolka
    @Daniyolka Před rokem +3

    Perfect video, thank you so much. I got lots of packages installed so my graduation_project.exe was 144MB, with your venv help I made it to 24 MB. You're awesome!

  • @slashot5887
    @slashot5887 Před 3 měsíci

    I love you! You saved my life with this video!
    I hope all your dreams come true and all the women in the world will crave you!!!!!

  • @fernandapachla9700
    @fernandapachla9700 Před 10 měsíci

    Thank you, really. You're awesome

  • @evankim2158
    @evankim2158 Před rokem

    Max thumbs up to an excellent video. thanks

  • @anthonyroseiro
    @anthonyroseiro Před 6 měsíci

    Very helpfull

  • @RoderickVellaCesare
    @RoderickVellaCesare Před rokem +2

    Auto-Py-To-Exe makes your life easier

    • @WilkenPerez
      @WilkenPerez Před 10 měsíci

      Yeah, but, it just initialize... didn't work for me... :(

  • @alexandervartolomei385
    @alexandervartolomei385 Před rokem +1

    So with auto-py-to-exe you can implement venv to your exe too?

  • @meteo40
    @meteo40 Před rokem

    like it
    😀

  • @ramshadabdulraheem2813
    @ramshadabdulraheem2813 Před 8 měsíci

    Thanks bro.. reduced 700 mb to 48 mb

  • @MadhavMishra-is9gb
    @MadhavMishra-is9gb Před 4 měsíci

    11:48 the title of the video

  • @wildgoose4179
    @wildgoose4179 Před 10 měsíci +1

    "venv tutorial" did nothing

  • @wildgoose4179
    @wildgoose4179 Před 10 měsíci

    This is so annoying. Every video is like this:
    SyntaxError: invalid syntax
    >>> -m venv tutorial2
    File "", line 1
    -m venv tutorial2
    ^^^^
    SyntaxError: invalid syntax
    >>>

    • @coderslegacy5661
      @coderslegacy5661  Před 10 měsíci +1

      Looks like you are executing these commands in the python interpreter. Turn it off first, then run the following command:
      python -m venv tutorial