Clean New Projects with venv - Virtual Environments

Поділитися
Вставка
  • Опубліковано 14 січ 2025

КОМЕНТАРІ • 41

  • @proterotype
    @proterotype Рік тому +6

    Virtual environments are just starting to become clear to me. Thanks for helping solidify it even more

  • @kcmichaelm
    @kcmichaelm 2 місяці тому +1

    This was a very helpful and clear video. I don't know why venv was so complicated to me previously.

  • @cmrncrick
    @cmrncrick Рік тому +3

    I learn so much from each and every video you put out. Thank you for such great content!!!

  • @sherlynhuso4363
    @sherlynhuso4363 11 місяців тому

    I was having problems with some dependencies, thank you very much for the super clear and concise video !

  • @its_me_tabs
    @its_me_tabs 8 місяців тому +1

    As a junior engineer, I have always thought virtual environments were unnecessary noise, I just recently realised how important they are.

  • @TheTomorrowDream
    @TheTomorrowDream 6 місяців тому +1

    Very well explained, thanks!

  • @kishore2137
    @kishore2137 11 місяців тому +1

    really help full thanks

  • @khandoor7228
    @khandoor7228 Рік тому +1

    Love your channel bro!

  • @zulucharlie5244
    @zulucharlie5244 Рік тому

    Your channel is a wealth of extremely useful and clearly presented information. Thank you very much.

  • @mrwilson2465
    @mrwilson2465 Рік тому +5

    Bonus info: from Python 3.9 it'll be nice to supplement the virtual environment creation with the optional argument `--upgrade-deps` as it'll update pip setuptools to the latest version in PyPI.
    It would be: `python3 -m venv .venv --upgrade-deps`

  • @anirbellahcen5551
    @anirbellahcen5551 3 місяці тому

    Thank you for your precise and informative contents. Just please try to zoom in a bit your terminal next time so the commands can be more clear. Thank you again.

  • @mitchhudsonmusic
    @mitchhudsonmusic Рік тому

    Great tutorial! Thanks!

  • @zulfugarabdullayev1977
    @zulfugarabdullayev1977 Рік тому

    Very useful video, thank you very much!

  • @johnsonofjohn1678
    @johnsonofjohn1678 Рік тому

    Excellent. Thanks!

  • @ingokaminski935
    @ingokaminski935 Рік тому

    You have also a video about poetry... What would you use? Poetry or venv? Thanks.

  • @mikejohnston9113
    @mikejohnston9113 Рік тому

    great tutorial. Thanks

  • @maxs.8146
    @maxs.8146 Рік тому

    Great explanation on how to create a virtual environment. I am wondering where the advantages or disadvantages are of using conda

  • @FishKungfu
    @FishKungfu 8 місяців тому

    Great helpful video!

  • @yashjha7152
    @yashjha7152 Рік тому

    Very informative! How is Pop OS btw?

  • @luxecutor
    @luxecutor 9 місяців тому

    N00b question, but would I clone the project to the .venv folder or the 'Project1' folder than .venv is in?

  • @sularaperera2719
    @sularaperera2719 Рік тому

    Awesome thanks. Btw is docker is the way to go? Can you pls show us ? Thanks heaps 😊

  • @scharif
    @scharif 4 місяці тому

    Do you commit the Virtual environment folder to Github? that sounds weird.
    Could you explain how you deal with that please? Do you have to remember to put it in the gitignore?
    isnt there a better way?

  • @my_yt_
    @my_yt_ 8 місяців тому

    Windows 10 (Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted) then I ran Scripts/activate from a test folder on the Windows Desktop test folder I manually created. I ran this in an instance of Administrator: Windows Powershell. Then, Golden.

  • @elatedbento
    @elatedbento Рік тому +1

    Great content as usual! Do you mind sharing the wallpaper, pls?

    • @NeuralNine
      @NeuralNine  Рік тому +1

      It's a default Pop!_OS wallpaper

  • @djalalmaster1018
    @djalalmaster1018 Рік тому

    Very informative video, but still have a question? If you want to work with a previously created virtual environment in a new project, how to make that if you're using a text editor

    • @ddjazz
      @ddjazz Рік тому +1

      In your new project folder python3 -m venv .venv and activate it , then install the requirements.txt from your previous project as shown in the video

    • @djalalmaster1018
      @djalalmaster1018 Рік тому +1

      @@ddjazz yeah that's it, thank u sm

  • @damadorpl
    @damadorpl Рік тому

    venv for binaries / packages and env for env constants / keys etc

  • @CanDoSo_org
    @CanDoSo_org Рік тому

    Thanks. Could you please explain a little more on how to set virtual python environment in Rstudio?

  • @maciekcieslik8433
    @maciekcieslik8433 Рік тому

    great video!

  • @abdulwaleedjulaid5491
    @abdulwaleedjulaid5491 Рік тому

    Please zoom your work not to see

  • @henrischomacker6097
    @henrischomacker6097 Рік тому

    I am sorry, but I am almost in a rage now...
    This is the fourth video I watched now while the last hour and all were completely useless.
    Why do you all wanna was our time? - And now?
    Now I have kind of second /usr/lib/python/dist-packages dir. - And how should my project1.py program file in my Project1 project directory use it?
    If I start my program like ./project1.py my OS python installation with it's libraries is still used.
    Not one word about how to use the new .venv.
    I just wasted one hour of watching your's and your colleague's videos not mentioning how to use and not administer a venv.
    One thumb down.

  • @entrprnrtim
    @entrprnrtim Рік тому

    "source .venv/bin/activate" Doesn't work on Windows. Any suggestions?

    • @entrprnrtim
      @entrprnrtim Рік тому

      If you're on Windows and having trouble activating your virtual environment. The user account you're using may be restricted from running scripts on the desktop.
      Here's the code that solved it for me:
      Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
      From there, you can pick up with "Scripts\activate" command next.

    • @Jucidful
      @Jucidful Рік тому

      I guess you've already found the solution, but it could be useful to other people :
      .venv\Script\activate.bat
      This is the way to activate virtual environment on Windows CMD

  • @xx8031
    @xx8031 8 місяців тому

    "11"! - america is showing what it is!

  • @-Barny
    @-Barny 10 місяців тому

    Guys, help me pls:
    (.venv) (.venv) barny-1111-11111% deactivate
    (.venv) barny-1111-11111% deactivate
    (.venv) barny-1111-11111% deactivate
    zsh: command not found: deactivate
    What is the problem? Why do i see that second vevn when im not under the venv? How can i remove it?