In Colab you need to put a ! before pip
Having trouble getting Pandas data reader to retrieve price quotes from Yahoo’s API. The most up to date answer seems to be:

"pip install --upgrade pandas pip install --upgrade pandas-datareader

However, for the time being I will be using Google Collab and its Python platform, does anyone know how to update the pandas here? Or has the API truly just been discontinued?
Python, Pandas, Yahoo Finance API