I’ve been trying to get luarocks to work on windows, and all it gives is cryptic gcc errors.

How does pip manage to work on most platforms without issues?

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    2 months ago

    I’m surprised to hear you say this because in all honesty, pip really sucks as far as package managers go. uv is a worthy replacement.

  • gid@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    15
    ·
    2 months ago

    If you’re getting gcc errors it sounds like the package you’re trying to install contains some c/c++ stuff that needs compiling.

    A lot of python packages that rely on things written in c/c++ ship those precompiled, which might account for why it feels easier for you.

  • sexual_tomato@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    11
    ·
    2 months ago

    It’s a 17 year old tool in the world’s most popular scripting language. It’s effectively had billions of tests run against it.

  • alsimoneau@lemmy.ca
    cake
    link
    fedilink
    arrow-up
    6
    ·
    2 months ago

    Pip is amazing. It does somethings in seconds that take anaconda over an hour to do.

  • Corbin@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 months ago

    Pick a language like Perl, where some packages are written in C and some are written in pure Perl, and you’ll get to experience the same cryptic GCC errors, sometimes. There’s no secret to pip; many Python developers upload wheels with pre-compiled binaries, including Windows-compatible binaries, and so you don’t have to run GCC because they already did it for you.

    • logging_strict@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      another interesting thing is optimizing runtime using mypyc. This is how our dev toolchain is so quick.

      mypy, flake8, isort, … these kinda packages

      Have never tried using mypyc would appreciate anyone sharing their experience with mypyc or other Python package compilers.

  • Midnitte@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    I’d love to hear a technical answer, but one thing that’s probably part of it is the fact that pip is written in Python and Python runs everywhere without much problem (though uv also seems to work pretty flawlessly too lol)