I fricking hate venvI fricking hate venv

I hate venv so much it's unreal. Each venv takes 10 gb of space with PyTorch and other shit. Isn't there a way to do this without wasting hundreds of gigabytes of space? I'm moronic if you need to know.

CRIME Shirt $21.68

Tip Your Landlord Shirt $21.68

CRIME Shirt $21.68

  1. 2 months ago
    Anonymous

    install pytorch system wide, then

    virtualenv --system-site-packages newvenv

    • 2 months ago
      Anonymous

      isn't pipx a better way to sandbox and manage python packages ?

      pipx upgrade-all

      • 2 months ago
        Anonymous

        there are like 40 solutions to this problem and none of them are very good

      • 2 months ago
        Anonymous

        pipx is exclusively for executables, not libraries, that's the entire point

        https://i.imgur.com/JtiFuOs.png

        I hate venv so much it's unreal. Each venv takes 10 gb of space with PyTorch and other shit. Isn't there a way to do this without wasting hundreds of gigabytes of space? I'm moronic if you need to know.

        >muh space
        Black person you're gonna use it to run 30GB+ LLMs anyway.

        • 2 months ago
          Anonymous

          Yes and I don't want to put PyTorch on my NAS server because it'll take ages to load.

          >Isn't there a way to do this without wasting hundreds of gigabytes of space
          Yeah, it's called delete Python and start writing your code in C. And stop importing libraries unless you can't rewrite the functionality of that library in a single day.

          >passgay
          >moronic Black personhomosexual
          checks out

    • 2 months ago
      Anonymous

      Bad solution, there are other Python packages installed system wide that's uncompatible with specific programs. I only need PyTorch and some other huge libraries.

      isn't pipx a better way to sandbox and manage python packages ?

      pipx upgrade-all

      I looked into it but isn't pipx more focused on executables?

      check out https://github.com/astral-sh/uv
      uv pip uses a global cache, but it's more for performance than storage use

      Now that's interesting. I'll look into that. Also, what's Conda's deal? People seem to use it over the builtin venv. Does it do something similar too?

      Are you poor? Just get a bigger ssd.

      I'm poor.

  2. 2 months ago
    Anonymous

    check out https://github.com/astral-sh/uv
    uv pip uses a global cache, but it's more for performance than storage use

  3. 2 months ago
    Anonymous

    There's a million ways to manage environments and installations
    I unironically spin a new VM every time I need to work on a different Python project
    I hate Python so much bros

  4. 2 months ago
    Anonymous

    Are you poor? Just get a bigger ssd.

  5. 2 months ago
    Anonymous

    >python
    >batteries included
    heh

  6. 2 months ago
    Anonymous

    >Isn't there a way to do this without wasting hundreds of gigabytes of space
    Yeah, it's called delete Python and start writing your code in C. And stop importing libraries unless you can't rewrite the functionality of that library in a single day.

    • 2 months ago
      Anonymous

      >writing your code in C
      Reinventing the wheel intensifies

      • 2 months ago
        Anonymous

        Reinventing the wheel is better than whatever the frick npm/cargo/pipenv is

    • 2 months ago
      Anonymous

      the cuda libs are C libraries anon

    • 2 months ago
      Anonymous

      Oh I recognize that fizzbuzzer.
      What's up bro, you're still gonna write a book on machine learning in C because you figured out how to write a GEMM?

  7. 2 months ago
    Anonymous

    >pip install package --break-system-packages

    • 2 months ago
      Anonymous

      >reinstalling requirements.txt every time instead of switching environments
      i kneel...

  8. 2 months ago
    Anonymous

    no hehe
    just be thankful that it works (more or less)
    im sure you COULD make it smaller if you tried but it's easier to just buy more storage

  9. 2 months ago
    Anonymous

    If you don't plan on updating the different venvs often, just use hard links to make all common files to be shared.
    https://www.jdupes.com/

  10. 2 months ago
    Anonymous

    Ironically runtimes like in Flatpak partially solve this issue.

  11. 2 months ago
    Anonymous

    >filtered by python
    ngmi

  12. 2 months ago
    Anonymous

    Imagine needing to care about where your dependencies are stored

Your email address will not be published. Required fields are marked *