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?

  • Corbin@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 hours 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.

  • gid@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days 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.

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    2 days 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.

    • sus@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      2 days ago

      I think this is talking about basic functionality, eg. can you do basic stuff with a clean install without everything immediately breaking

      There’s a lot of programming tools that are primarily developed for and on linux, and “windows support” is an afterthought which will result in linux being a very frictionless experience but windows being a minefield of problems and requiring careful manual setup

  • Midnitte@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days 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)