We investigate the gravitational collapse of anisotropic perfect fluid by applying junction conditions and spherically symmetric space-times in the presence of cosmological constant. We show that the cosmological constant slows down the collapsing process and also reduces the size of black hole.This work provides a generalization of the previous studies by Cissoko et al. (arXiv:gr-qc/9809057) for dust and by Sharif and Ahmad (Mod. Phys. Lett. A, 22:1493, 2007) for perfect fluid.