Don't worry, soon enough you'll get to experience the joy of borking your python install! Pro tip: DO NOT uninstall python to try to fix it, it will break literally everything lol
i recently tried to do a sudo apt uninstall python on an Ubuntu install, which then lead it to uninstall just about everything on the system, including the desktop environment (gnome).
Just about everything has python as a dependency. So when you trigger an uninstall all programs that depend on python get flagged as well.
I have done this myself, it brakes Linux in an interesting way. For me everything started disappearing from my programs, than gnome changed to default.
So I did the dumb thing and restarted my PC. It then loaded into the command line. I had to reinstall Ubuntu because I could not figure out how to fix it.
Remember kids always have backups and always check what you are removing.
Not all distributions break like this, in my experience. The trouble with Ubuntu is that there's a lot of packages included in the ubuntu-desktop meta package. So you remove one (maybe it's a utility that you don't really need, maybe it's a broken Python install) and then suddenly it's trying to remove things from all over the place.
I've never actually looked to see if there are ways around this. I assume that there are. The majority of Ubuntu users I know have got bitten by this at least once, though.
In Manjaro, I was able to uninstall and reinstall dependencies with surprisingly little fuss - so I guess Ubuntu works this way for the sake of being more user friendly overall.
I do that sometimes, but only for things like commands I want to use from anywhere and for optional dependencies that aren't available alongside the main program via apt.
Normally when I get in trouble with pip, I end up finding I could have installed it with dnf/apt, but the name was "python3-packagename" rather than "packagename".
I try the package name, then I stick combinations of python- and lib- in front of it and try a few more times, then I try pip, then I try pip3, then I try pip2, then I try npm, and if I don't have it installed by then, I give up and find something else to do.
Normally when I get in trouble with pip, I end up finding I could have installed it with dnf/apt, but the name was "python3-packagename" rather than "packagename".
Then I cry at my hours of self inflicted pain.
Honestly, I think the single biggest problem with package managers is that they create more logistical problems, of the "which package manager do I need to install this package from" variety.
167
u/ase1590 Lazy Antergos User Dec 18 '18
Also, anyone cluelessly doing
sudo pip installanything needs to be flogged.Virtual Environments are also preferable in order to keep away the Python superfund disaster.