Skip to content

PolyChord installation

Will Handley edited this page Feb 8, 2019 · 9 revisions
  • You need to install gfortran. On ubuntu
sudo apt-get install gfortran
  • PolyChord can be installed thus:
git clone https://github.com/PolyChord/PolyChordLite PolyChord
cd PolyChord
make MPI= pypolychord
python setup.py install --user


cd
python -c 'import pypolychord'

You may need to adjust the compilers in Makefile_gnu. If in doubt, run make veryclean to restart.

To compile with MPI:

make veryclean
make pypolychord
CC=mpicc CXX=mpicxx setup.py install --user

For linux users, it is now possible to install pypolychord via pip

pip install pypolychord
Clone this wiki locally