News for hackers. Stuff that matters.
Re:Why I'm still using Python by OJFord on Friday December 30, 2022 @06:08PM (#34191206)
> I don't remember needing a package that I couldn't install with pip.

I don't think there's even a (reasonable/non-contrived) way that a package could be available to you that pip wouldn't install?

(Or do you mean that you don't remember desiring a library functionality that wasn't available in some package?)

Re:Why I'm still using Python by vonseel on Friday December 30, 2022 @07:49PM (#34191992)
It's rare, but I've run into packages that don't install easily with pip, due to not having binaries for a specific Python version + platform (something like this one where the combinations of Python+platform+MacOS version are limited, for example - https://pypi.org/project/virgil-crypto-lib/#files ).

Also there are probably tons of "packages" which were never published officially to pypi but exist on github, that people have made public but decided not to maintain.

Re:Why I'm still using Python by OJFord on Friday December 30, 2022 @09:36PM (#34192909)
> Also there are probably tons of "packages" which were never published officially to pypi but exist on github,

I'm doing this from memory, it's hardly a frequent thing for me, but err something like:

    pip install -e git+https://github.com/vonseel/...
Re:Why I'm still using Python by heavyset_go on Friday December 30, 2022 @10:35PM (#34193255)
Some projects are distributed on PyPI as source code, and sometimes that source code has C modules that need to be compiled. The same can be true with packages that ship with Rust modules.

Both might require you to have compiler toolchains installed.

Re:Why I'm still using Python by pid-1 on Saturday December 31, 2022 @02:09AM (#34194355)
Also some compiled code might need to be statically linked to other deps.

A practical example: on Windows, try 'pip install tokenizers'.

Re:Why I'm still using Python by dwattttt on Saturday December 31, 2022 @03:26AM (#34194672)
I was curious what would go wrong, this just worked for me:

py -3 -m pip install tokenizers

...

Building wheel for tokenizers (pyproject.toml) ... done

Created wheel for tokenizers: filename=tokenizers-0.13.2-cp311-cp311-win_amd64.whl

Re:Why I'm still using Python by heavyset_go on Saturday December 31, 2022 @06:36PM (#34201874)
Looks like if you try to install it via source you might need a compiler/linker toolchain installed for its Rust bindings.