本文介绍了安装mpi4py时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用pip install mpi4py安装mpi4py,但是出现以下错误:
I'm trying to install mpi4py using pip install mpi4py, but I'm getting the following error:
error: Cannot find 'mpi.h' header. Check your configuration!!!
我之前在同一错误报告中
Earlier in the same error report I have,
clang: error: linker command failed with exit code 1 (use -v to see invocation)
可能是什么问题?
谢谢!
推荐答案
如错误所示,缺少库.我通过安装libopenmpi-dev软件包解决了它
As the error says, there are libraries missing. I solved it by installing libopenmpi-dev package
sudo apt install libopenmpi-dev
,然后使用pip安装mpi4py
and then installed the mpi4py using pip
sudo pip install mpi4py
这篇关于安装mpi4py时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!