0

I followed the procedure in here.

sudo apt-get install meep h5utils

and tried this also. But still have that error message.

xxxx@xxxxxxxxxxxx:~/Downloads$ python3 mie_scattering.py
Traceback (most recent call last):
File "mie_scattering.py", line 4, in <module>
import meep as mp
ModuleNotFoundError: No module named 'meep'

it seems like the python cannot read the meep. by using the second method mentioned above, it creates several folder under \Downloads. I can see meep is there.

I ran this also, but still it does not solve the issue.

export PYTHONPATH=~/Downloads

I checked there are three versions of python in my PC. Running the mie_scattering.py with all version produces the same issue.

Appreciate any help.

Codelearner777
  • 313
  • 3
  • 15

1 Answers1

0

Did you install the package required to use meep with Python named "mpi4py" ?

pip install --user mpi4py

Best regards.

finnmglas
  • 1,626
  • 4
  • 22
  • 37
dllagl
  • 19
  • 5