ImportError: No module named fenics after regular installation in Google Colaboratory

0

I have installed the FEniCS package (https://fenicsproject.org) in google Colab using the method recommended in the FEniCS web site

!sudo apt-get install -y -qq software-properties-common
!sudo add-apt-repository ppa:fenics-packages/fenics
!sudo apt-get update -qq
!sudo apt-get install -y --no-install-recommends fenics

I do not see any error in the installation. But when I try to import the fenics module:

from fenics import *

I get the error:

ImportErrorTraceback (most recent call last)
<ipython-input-11-d1027f372568> in <module>()
      2 import os, sys, shutil
      3 
----> 4 from fenics import *
      5 from mshr import *
      6 import dolfin as df

ImportError: No module named fenics

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

Sirius Fuenmayor

Posted 2019-10-10T10:04:26.543

Reputation: 1

No answers