Pycharm and FEniCS

1.2k Views Asked by At

I have installed Fenics using this

https://fenics.readthedocs.io/projects/containers/en/latest/introduction.html#running-fenics-in-docker

and everything works so far.

Now I wanted to use Pycharm to try to write a program using fenics. It starts with

from fenics import *

and I get the error

ModuleNotFoundError: No module named 'fenics'.

I use Python 3.9, PyCharm 2021.1.2.

Can the problem come from some wring directories?

enter image description here

1

There are 1 best solutions below

3
On

Make sure you've installed fenics on your local machine, as well as added it to your Pycharm package library.

https://fenics.readthedocs.io/en/latest/installation.html

https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html