Debian (and probably its derivatives, primarily ubuntu) uses / usr / lib for both architectures. / usr / lib 64 is provided as a symbolic link to / usr / lib for compatibility reasons. Some newer applications may look in / usr / lib 64 for libraries, while some legacy codes may use / usr / lib. Other distributions can provide support for several architectures that have 32-bit and 64-bit libraries installed on the same computer, which will then be placed in / usr / lib and / usr / lib64, respectively. An example of this is Arch Linux, as described here .
Some python libraries are platform independent in any case (.py code), so it makes sense to create a single package for both architectures to minimize maintenance efforts. Then this package will be installed both in lib and in lib64 or, as you have already indicated, in one directory, which is symbolically associated with lib and lib64.
source share