I installed openmc from source on Linux (Ubuntu 20.04.4) and am trying to use a separate package with it, called “openmc-plasma-source,” but when I try and run the sample script from its github I get this:
ModuleNotFoundError: No module named ‘numpy’
Does anyone know why this is happening? I’ve run pip install numpy and it says that I have numpy installed. I’m currently using vscode as my IDE.
I hear that openmc-plasma-source is a great little package for making fusion plasma sources for openmc
I think in this case the error is not related to openmc or the plasma source package but more related to the use of python enviroments
I think what might be happening is the VScode python environment might be different to the python environment you are installing packages into
I include two screen shots, the first one where I load up vs code and reproduce the same error of not finding numpy and the second screen shot where I’ve selected a different python environment using the button circled in the low right. In the second example the python environment has numpy and runs the code.
@Shimwell At present I am in the second image. But I am facing runtime error for not having the Data Library. But I am unable to install it. Please help.