我正在尝试安装mpi4py,如指南中所描述的。当我这么做
python setup.py build --mpicc=/usr/bin/mpicc (甚至没有最后的论证),我得到以下错误:
building 'mpi4py.MPI' extension
/usr/bin/mpicc -fPIC -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -I/usr/include/python3.4m -c src/MPI.c -o build/temp.linux-i686-3.4/src/MPI.o
In file included from src/MPI.c:3:0:
src/mpi4py.MPI.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: command '/usr/bin/mpicc' failed with exit status 1有什么问题吗?
发布于 2014-12-26 20:24:09
可能你需要安装python-dev
sudo apt-get install python-dev使用pip:
sudo apt-get install pip
sudo pip install mpi4py您可以直接使用apt-get安装它:
sudo apt-get install python-mpi4pyhttps://stackoverflow.com/questions/27661575
复制相似问题