• Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    uv mostly gets rid of the “venv activation” thing, you can do uv run main.py and it’ll just work, no need to even install packages explicitly, it’ll also do that for you and make sure your uv.lock is in sync with your environment.

    • Iced Raktajino@startrek.website
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Sounds like at least a minor improvement. Can those me moved and still work? Like, if I move the project folder, do I have to reinitialize it and download all the packages again?

      • WhyJiffie@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        you can always keep the venv dir in the project dir, even without uv. that’s what I do most of the times