I found an interesting module to do parallel calculations with python
but when using the documentation it tells me that the code to start using the module is this but when I try to execute the code I get an error:
from mpi4py import MPI
comm = mpi4py.MPI.COMM_WORLD
rank = comm.Get_rank()
print "HOla", rank
but I get this error in the console
C: \ Users \ LUIGGI-S> C: \ Users \ LUIGGI-S \ Desktop \ cluster.py Traceback (most recent call last): File "C: \ Users \ LUIGGI-S \ Desktop \ cluster.py", line 3, in comm = mpi4py.MPI.COMM_WORLD AttributeError: 'module' object has no attribute 'MPI'
What could be the solution?