It is proved that for any iterated function system of contractions on a complete metric space there exists an invariant compact convex sets of probability measures of compact support on this space. A similar result is proved for the inhomogeneous compact convex sets of probability measures of compact support.