Python Virtual Environments & The Facts of Life

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • If you develop Python programs, you need to use Virtual Environments! In this video, I'll explain what they are, how to use virtual them and The Facts of Life.
    Support me on Patreon
    www.patreon.co...
    Video Slides
    github.com/bca...

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

  • @needtorename6425
    @needtorename6425 9 วันที่ผ่านมา

    After a days of struggle I found this video managed to explain clearly the concept of Virtual Environment. Great job!

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

    Thoroughly enjoyed this and created my virtual environment. Thanks Bryan

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

    Thank you for making this video. I just learned why these are important the hard way when I updated matplotlib and some library I was just experimenting with and completely broke my scripts. Now I have some steps to take to start using these.

    • @BryanCafferky
      @BryanCafferky  11 หลายเดือนก่อน +1

      Yep. But when you learn the hard way, you remember. Thanks

  • @needtorename6425
    @needtorename6425 8 วันที่ผ่านมา +2

    Why do we need to deactivate the Environment? .. considering, we want to create it for all of our projects and we need it.

    • @BryanCafferky
      @BryanCafferky  7 วันที่ผ่านมา +1

      You create a separate environment for each project so you must deactivate one to switch to another.

  • @injeranamitmita
    @injeranamitmita 11 หลายเดือนก่อน +1

    great stuff Bryan! I have seen in the past using requirements file, how does that come into play with venv or does it come into play at all? thanks!

    • @Noobsmove
      @Noobsmove 11 หลายเดือนก่อน +1

      The same way you can install a single package using "pip install " you can install all you dependencies using "pip install -r ".
      And if you work properly (as tought by Bryan :P ), you run the pip install command while you are in your virtual environment.

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

      I do discuss this in the video.