• Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    30
    ·
    4 months ago

    Early on in my career, I had to do a project in Python, together with another junior. Neither of us had any clue how to handle Python and he was on Windows, so, if I remember correctly, he had to install some dependencies from Pipenv, others from Conda, and his setup would break every two weeks in novel ways.

    Eventually, we became quite good at installing a working setup, but correctly removing the broken setup was a pain. Often times, I thought that just reinstalling the whole OS would be quicker. 🫠

    • Ignotum@lemmy.world
      link
      fedilink
      arrow-up
      29
      arrow-down
      1
      ·
      4 months ago

      Every now and then a new hire comes along with a windows pc, every time they decide they want to try to get everything working on windows, after a week they give up.

      On linux it’s one pip install and you’re done

        • Ephera@lemmy.ml
          link
          fedilink
          arrow-up
          6
          ·
          4 months ago

          I believe, it’s because various Python libraries ship with a pre-compiled C/C++/Rust library. That library needs to be compiled for a specific target, and you often only get Linux x86_64 on Pypi, because that’s what most library devs use themselves.

          Conda tries to solve that by providing a separate repository, where they do have builds for more targets available, but as a result, they have fewer libraries available in that repo. That’s why we needed to install some via Conda and some via Pipenv/Pypi.

        • Ignotum@lemmy.world
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          4 months ago

          No clue, all i know is that i never have to do more than that, and noone has managed to get it working on windows 🤷‍♂️

          When i started learning programming, everything was always a pain to set up, needed to install weird IDEs from shady websites and they only worked half the time. Then a friend showed me linux where stuff just worked out of the box, just slap some code in a textfile and compile it, i never looked back (was working in c/c++ but from what i’ve seen it’s not much better for python)

          • OsaErisXero@kbin.run
            link
            fedilink
            arrow-up
            2
            ·
            4 months ago

            Since some wsl features started coming with windows out of the box python has been pretty trivial to install. It’s a far cry from the conda/cygwin nightmare hell scape it used to be

      • Aceticon@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        Last time I checked, it was way easier in Windows to have a VM running Linux just for Python, than to get Python to reliably work nativelly in Windows.

      • HappyRedditRefugee@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        We have a development system for python on Windows at work, works very well also.

        On linux is one pip install, buy maybe first do a venv^^