Possible duplicate of Installing fenics on Google Colab Please read through this, and see if it is related.