In my whole life, when I installed a software, his dependancies link has installed all the python things that he needs to, so it can run right after the installation

But now on my PC, I don't know what i've done, but I can install, uninstall, reinstall, all python package or parent package that ask for it, but it doesn't changes anything: When I launch softwares, they complain indefinitely on missing modules. So I can install what he asks but I have to install manually ALL the modules that all my softwares ask for ONE BY ONE.

What i've done? It wasnt like that before

How do I manage for the modules to install normally and automatically, like it naturally was?

  • How do you install packages? Pip?
    – Jim Danner
    Apr 1, 2020 at 23:06
  • I was used to install the softwares with my package manager, and he handeled all the dependencies just right, I never had missing modules. Now I do like always but theres missing module all over. And when I tried to install the modules to resolve this problem I was doing it with my package manager too, and it resolve the dependency, but there plenty of them just after, so I have to reinstall the whole ever maked modules by hand one by one and reexecute the sotfware to see. Isn't there a way to return at what it was, automatic?
    – aaa
    Apr 1, 2020 at 23:09
  • tl;dr: all with package manager
    – aaa
    Apr 1, 2020 at 23:12
  • Don’t know what package manager it is, on what operating system, but did the default Python version change from 2 to 3 or something? All operating systems are making that change at some point
    – Jim Danner
    Apr 1, 2020 at 23:31
  • en.wikipedia.org/wiki/Package_manager ; on Linux, I don't know about the default version of Python
    – aaa
    Apr 2, 2020 at 11:27

1 Answer 1


I tried something that seems to work so far

I did a

for i in `pacman -Q  | cut -f 1 -d ' '`; do pactree $i | grep unresolvable >> unmetDependencies; done

To get a list of missing packages; Then some

cat unmetDependencies | sed {─;├;└;│; ;[unresolvable]} > unmetDependencies

(thats not the real command, I did it instead with a "Search and replace" on a WYSIWYG) to get only the packages name; a

sort unmetDependencies | uniq > unmetDependencies

to only have packages names once; and finally a

pacman --asdeps -Sy `cat unmetDependencies`

To install those

(I imagine that on Ubuntu it's simple because apt-get has an option to resolve all the system unmet dependencies)

(for real it doesn't resolves everything, for example, I have libxml2 installed but softwares stills ask for it. However it still resolves some problems. It's maybe a problem of path or idk, but python doesn't find some modules. But basically if you reinstall all package of your OS it should work fine)

I found a command who seems to display packages who have problems and I reinstalled those listed packages:

pacman -Syu `pacman -Qkq | cut -f 1 -d ' ' | sort | uniq`

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .