chris-n-self / ptmpi

Python class to implement parallel-tempering fully in parallel using MPI
MIT License
6 stars 2 forks source link

Installation issues #2

Open sraycquic opened 5 years ago

sraycquic commented 5 years ago

Hi Chris,

I am trying to download the ptmpi package that you shared here. I have installed mpi4py and mpich. But after running the Ising code I am getting as error in the very beginning itself, where it says: "ModuleNotFoundError: No module named 'ptmpi' ". Is there something I am missing here? Apart from installing the above packages do I need to install something else?

-Best, Sayonee

chris-n-self commented 5 years ago

Hi, I think the problem is you need to add the package to your python path environment variable (the list of places python searches for packages). If you are using Mac or Linux you can do that by adding export PYTHONPATH="$PYTHONPATH:/path/to/repository/packages" to the end of your ~/.bash_profile file. (I'm not sure what the Windows equivalent is.) I will add that note to the readme.