How to know which libraries to preinstall before using the pipeline of each model?

Hello, I am starting to run models from Google Colab. Therefore, every day I have to reinstall the libraries. Because of this, sometimes I have problems running some models.

So, I would like some help in knowing which libraries I should preinstall before using the pipeline of each model.

Or I always download: numpy, transformer, pytorch, accelerate…