• vithigar@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    21 days ago

    What is so bad about virtual environments?

    They’re a solution to a self-inflicted problem. They’re only “really nice and useful” if you accept that having your projects stomp all over each others’ libraries and environments is normal.

    If projects were self-contained from the outset then you wouldn’t need an additional tool to make them so.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 days ago

      thankfully Python seems to be moving away from the “activating your venv” nonsense. If you use poetry or uv, you don’t necessarily need to “activate” it before running your code; though a lot of people still try to do it because of learning inertia I guess.