No module named 'openmc'

dear openmc users

I installed openmc from source on ubuntu 16.04 as mentioned in the guide, and then install the version 3-5.1.0 of Anaconda. when I “import openmc” module in jupyter notebook. I get a the error massage. ModuleNotFoundError Traceback (most recent call last)

<ipython-input-4-d1f3e06c5152> in <module>()
      1 get_ipython().run_line_magic('matplotlib', 'inline')
----> 2 import openmc

ModuleNotFoundError: No module named 'openmc'

best reguard

What is printed when you run

conda list openmc

There was a recent build of the conda package where the python package was broken on python <3.6 It should be fixed if you do

conda install openmc

Lababsa,

Try going to the openmc source directory and running:

pip install .

This should install the OpenMC Python package into your Anaconda environment (See the latest installation instructions here for further explanation).

Best regards,
Paul

1 Like