Score:0

Why install ‘black’ rather than ‘python3-black’?

tz flag

I am using Kubuntu with sway as a window manager, but I don’t think that makes a difference to my problem.

I just spent a long time trying to enter sudo apt install python3-black. The answer, it turns out after a Google search, is that the package is labelled black, not python3-black.

In retrospect, I suppose I could have used apt search but was feeling a bit frustrated at the time.

Just for future reference, is there a general rule for when python packages are labelled python3-* and when they are not?

Many thanks

muru avatar
us flag
I would expect `python3-*` packages to be primarily libraries, which may incidentally provide commands as well. In black's case, the command is the main thing, I don't even know if it provides a general library.
Tim Ferguson avatar
tz flag
Thanks for coming back. This actually came about after first looking for flake8 -- which is python3-flake8.
muru avatar
us flag
No, the actual `flake8` binary is in [the `flake8` package](https://packages.ubuntu.com/focal/all/flake8/filelist)
Tim Ferguson avatar
tz flag
Ooh: so it seems, doing a ```apt show```. On the other hand, my apt log shows ```sudo apt install python3-flake8``` as a successful command (dated 2023-08-04). (PS sorry for delay in noticing your comment!)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.