0

I have installed MPICH on my Pi. I am making a cluster.

sudo apt-get install python-mpi4py installs mpi4py. However, it also install openmpi which conflicts with MPICH.

So, I started from scratch again, installed MPICH. After that I ran following sequence of commands,

sudo apt-get install cython installs cython which is must for mpi4py.

git clone https://bitbucket.org/mpi4py/mpi4py downloads mpi4py source.

cd mpi4py to open mpi4py source directory.

sudo python3 setup.py build to build. It shows following error,

pi@raspberrypi:~/mpi4py $ sudo python3 setup.py build
Unable to find pgen, not compiling formal grammar.
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Utility'

Someone please help me. Please let me know where I am doing wrong.

Ghanima
16k17 gold badges66 silver badges127 bronze badges
asked Aug 27, 2016 at 16:09

1 Answer 1

0

I am answering my own question here. I have asked the same query on MPI4PY bitbucket portal. We can find that discussion here.

Go to home directory.

cd ~

Download mpi4py tarball.

wget https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-2.0.0.tar.gz

Update.

sudo apt-get update --fix-missing

Unzip the file.

tar zxf mpi4py-2.0.0.tar.gz

Open the directory.

cd mpi4py-2.0.0

Installation for Python3

sudo apt-get install python3-dev

sudo python3 setup.py build --mpicc=/home/pi/mpich-install/bin/mpicc

sudo python3 setup.py install

Installation for Python

sudo apt-get install python-dev

sudo python setup.py build --mpicc=/home/pi/mpich-install/bin/mpicc

sudo python setup.py install

answered Sep 7, 2016 at 3:57

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.