You will need to use the same versions of all dependencies as used by Coursera environment. Please read this guide for the local machine and this for Colab.