Colab already has most of these libraries installed. You don’t need to install PyTorch for example. The rest you can install with pip. I think all you need is transformers and simpletransformers.
pip install transformers
pip install simpletransformers
If it complains about any missing packages, you should be able to install them with pip.