So I’m no expert, but I have been a hobbyist C and Rust dev for a while now, and I’ve installed tons of programs from GitHub and whatnot that required manual compilation or other hoops to jump through, but I am constantly befuddled installing python apps. They seem to always need a very specific (often outdated) version of python, require a bunch of venv nonsense, googling gives tons of outdated info that no longer works, and generally seem incredibly not portable. As someone who doesn’t work in python, it seems more obtuse than any other language’s ecosystem. Why is it like this?

  • ebc
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    6 hours ago

    Coming at this from the JS world… Why the heck would 2 projects share the same library? Seems like a pretty stupid idea that opens you up to a ton of issues, so what, you can save 200kb on you hard drive?

    • it_depends_man@lemmy.world
      link
      fedilink
      Deutsch
      arrow-up
      2
      ·
      edit-2
      6 hours ago

      Why the heck would 2 projects share the same library?

      Coming from the olden days, with good package management, infrequent updates and the idea that you wanted to indeed save that x number of bytes on the disk and in memory, only installing one was the way to go.

      Python also wasn’t exactly a high brow academic effort to brain storm the next big thing, it was built to be a simple tool and that included just fetching some library from your system was good enough. It only ended up being popular because it is very easy to get your feet wet and do something quick.

    • jacksilver@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      6 hours ago

      Yeah, not sure I would listen to this guy. Setting up a venv for each project is about a bare minimum for all the teams I’ve worked on.

      That being said python env can be GBs in size (especially when doing data science).