在 conda 环境下 pip install mpi4py
安装 mpi4py 库时出现编译报错,报错信息为:
line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
failure.
removing: _configtest.c _configtest.o
error: Cannot compile MPI programs. Check your configuration!!!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mpi4py
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects
所以导致该错误的原因是
x86_64-conda_cos6-linux-gnu-cc: command not found
即没有找到 x86_64-conda_cos6-linux-gnu-cc
。只需执行以下命令安装即可:文章来源:https://www.toymoban.com/news/detail-595781.html
conda install gcc_linux-64
安装完成后重新执行 pip install mpi4py
即可完成安装。文章来源地址https://www.toymoban.com/news/detail-595781.html
到了这里,关于pip install mpi4py报错:ERROR: Could not build wheels for mpi4py, which is required to install pyprojec的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!