A multi-dimensional cosmological model describing the evolution of a fluid with shear and bulk viscosity in n Ricci-flat spaces is investigated. The barotropic equation of state for the density and the pressure in each space is assumed. The second equation of state is chosen in the form when the bulk and the shear viscosity coefficients are inversely proportional to the volume of the Universe. The integrability of Einstein equations reads as a collinearity constraint between vectors which are related to constant parameters in the first and second equations of state. We give exact solutions in a Kasner-like form. The processes of dynamical compactification and entropy production are discussed. The non-singular D-dimensional isotropic viscous...