# Fenics/dolfnix does not work inside conda JupiterNotebook

**URL:** <https://fenicsproject.discourse.group/t/fenics-dolfnix-does-not-work-inside-conda-jupiternotebook/9276>\
**Category:** Uncategorized\
**Created:** [September 14, 2022, 9:46pm UTC](https://fenicsproject.discourse.group/t/fenics-dolfnix-does-not-work-inside-conda-jupiternotebook/9276 "2022-09-14T21:46:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyeagle](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@skyeagle](https://fenicsproject.discourse.group/u/skyeagle)\
**Post date:** [September 14, 2022, 9:46pm UTC](https://fenicsproject.discourse.group/t/fenics-dolfnix-does-not-work-inside-conda-jupiternotebook/9276/1 "2022-09-14T21:46:23Z")

</div>

I install fenics-dolfinx on my Mac using these lines:

conda create -n fenicsx-env  
conda activate fenicsx-env  
conda install -c conda-forge fenics-dolfinx mpich pyvista

from this site [GitHub - FEniCS/dolfinx: Next generation FEniCS problem solving environment](https://github.com/FEniCS/dolfinx)

Then I open JupiterNotebook from anaconda navigator and I type:

from dolfinx import \*

I got this error message:

ModuleNotFoundError Traceback (most recent call last)  
/var/folders/31/w56d47t956zfp0kklgtz\_yq40000gn/T/ipykernel\_54154/177702259.py in   
----\> 1 from dolfinx import \*

ModuleNotFoundError: No module named ‘dolfinx’

---

<div class="post-metadata">

**Author:** ![micBenn](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/micbenn/32/8296_2.png) [@micBenn](https://fenicsproject.discourse.group/u/micBenn)\
**Post date:** [September 14, 2022, 10:57pm UTC](https://fenicsproject.discourse.group/t/fenics-dolfnix-does-not-work-inside-conda-jupiternotebook/9276/2 "2022-09-14T22:57:15Z")

</div>

Did you navigate to the new environment? The first line you ran created a new Python environment specifically for FEniCSx and dolfinx won’t be available in the base environment.

If you are in the command prompt you can call `conda activate fenicsx-env` to change to the new environment, and the start the Jupyter Notebook with `jupyter notebook`.
