Within the framework of the dipole-induced-dipole (DID) model, a method is proposed for calculation of the temperature dependence of dimer polarizability. The temperature dependence is a consequence of statistical averaging of dimer electronic polarizability over rotational-vibrational states of different dimer configurations. Every molecule in a dimer is considered as an effective atom having the same polarizability tensor as the molecule itself. The interaction between the effective atoms in a dimer is taken in the form of the Lennard-Jones potential. The method proposed is applied to calculation of the temperature dependence for (N2)2 and (O2)2 polarizability invariants.