Installation error

267 views
Skip to first unread message

Tian Qin

unread,
Dec 20, 2017, 7:36:14 PM12/20/17
to OpenMC Users Group
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

Paul Romano

unread,
Dec 21, 2017, 2:52:16 AM12/21/17
to Tian Qin, OpenMC Users Group
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

--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users+unsubscribe@googlegroups.com.
To post to this group, send email to openmc...@googlegroups.com.
Visit this group at https://groups.google.com/group/openmc-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages