Skip to content

Instantly share code, notes, and snippets.

@JordiCorbilla
Created July 30, 2016 18:51
Show Gist options
  • Save JordiCorbilla/03293ef0eff4173be14733b89f3e90a8 to your computer and use it in GitHub Desktop.
Save JordiCorbilla/03293ef0eff4173be14733b89f3e90a8 to your computer and use it in GitHub Desktop.
# ******************************
# These steps will allow you to install MPI4PY to your Raspbian Jessie distro
# Jordi Corbilla
# ******************************
# download mpi4py
wget https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-2.0.0.tar.gz
#unzip the file
sudo tar -zxf mpi4py-2.0.0.tar.gz
# go to the directory
cd mpi4py-2.0.0
# install python-dev package
sudo aptitude install python-dev
# run the setup
python setup.py build
sudo python setup.py install
# Set the python path
export PYTHONPATH=/home/pi/mpi4py-2.0.0
# Test that MPI works on your device
mpiexec -n 5 python demo/helloworld.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment