By using the statistical mechanics, the pressure tensor for the multi component fluid mixture is derived. With the help of the classical density functional theory, profiles of the pressure components are calculated, and the influence of the total volume fraction, ratio of volume fraction, and size asymmetry on the pressure are studied. In addition, our results show that for the mixture confined in the hard cavity, the pressure shows a discontinuity near the cavity wall. However, in the soft cavity condition, the discontinuity disappears.