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?
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.Thanks, this is the explanation I was looking for.
Also, lua is the same, packages are either written in c or pure lua.
Pip is amazing. It does somethings in seconds that take anaconda over an hour to do.
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.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
Compared to luarocks, pip is amazing.
Maybe so, but pip is years behind package managers like
cargo
. It really is not particularly good.Sure, and Luarocks is behind pip, and it really is particularly bad.
pip
cannot install some system dependencies your library might need. Windows is extra difficult sometimes, as the library might require some paths during installation, Linux is way easier for this kind of stuff. Either you use WSL, or you follow these instructions for Windows I found by googling https://github.com/luarocks/luarocks/blob/main/docs/installation_instructions_for_windows.mdI use Mint btw
The instructions don’t work half the time.
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)
Lua runs everywhere (almost), but I cannot install a uuid library on windows.
IIRC I’ve had pip fail like that too. Unable to build a lib it included.
Pip does fail sometimes, but its not half as bad as luarocks.