Installation error

Hey Everyone,

After I install openmc using conda, I tried to practice the example notebook,

but when,

import openmc

it shows

Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named openmc

and here is my openmc info,

OpenMC version 0.9.0 Git SHA1: 44a47752de8b4ebe0af22104b5b9454e2707a1dc Copyright (c) 2011-2015 Massachusetts Institute of Technology MIT/X license at <http://openmc.readthedocs.io/en/latest/license.html>

Thank you very much!

Sincerely,
Nuclear Engineering Student

Hi Tian,

It’s possible that your Jupyter notebook is not set up to use the conda environment in which you installed OpenMC. You need to make sure that whatever Python interpreter you’re using is the one installed the same conda environment in which OpenMC was installed. To determine what environment is being used, you can refer to this stackoverflow question.

Best,
Paul

1 Like