Install dolfinx with docker

Hi everyone,
docker run -ti dolfinx/dolfinx:stable
I install dolfinx with docker succesfully. Here is the list of pakages.


In the command line, dolfinx is successfully imported.
image
Then I add Docker interpreter in Pycharm. The import of dolfinx fails.
image
I find that the pakage ‘fenics-dolfinx’ is missing from the packages installed in the virtual environment. But in the docker image, the pakage ‘fenics-dolfinx’ exists. Any clues about what is going on?

You need to add the python path of DOLFINx to pycharm. It is:
/usr/local/dolfinx-real/lib/python3.12/dist-packages
It is not in the standard Python path as there exists a real and complex mode installation of DOLFINx in the docker images, and their paths has to be unique

Yes,it works. Thanks!