How yay decides for which Python version should packages be installed?

Recently there was this change, that Python version updated in arch repo. I may have messed my config a little bit in the past, by using pyenv, but it should be back to normal.

How does yay knows, where to install python packages?

There are 2 folders for packages


and my current python version used is 3.11

yet yay powerline will install requiered packages into 3.10, so when trying to launch it will throw
Missing Module

The same will happen with tools I had in the past - all have packages in 3.10

How one does upgrade python version properly or what I messed?

Depending on the packages you install, they rely on different versions of python. It is up to the package maintainer to upgrade their packages. Therefore you cannot do much about it.
In case of missing python-dependencies (modules) it is up to you to look which are missing, and install them to the proper python version folder, I guess.

1 Like

I’m not sure what you saying is right:

Kazam is doing only:

python3 install --root ${pkgdir}

and after reinstall it installed in new Pytohn 3.11 dir properly

But powerline-python goes to old 3.10 folder, despite using same syntax:

That is an AUR package. That means you build it on your machine and as a result it uses the Python version you have on your machine at the time.

powerline is a repo package. This means the maintainer builds it for you and it will install the files where they are in the package.

However, python-powerline looks to be correct to me in the repos. This probably means you have the wrong version installed. The current version is 2.8.3-2


Aaaa :open_mouth: Thank you, now it makes sense and I can start cleaning my mess!

PS. Now I see I’m also getting hit by this

1 Like

Yes, 3rd party repos make things even more complicated. I avoid them whenever possible.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.