pip install mpi4py报错:ERROR: Could not build wheels for mpi4py, which is required to install pyprojec

怼烎@ 2024-02-22 09:32 136阅读 0赞

在 conda 环境下 pip install mpi4py 安装 mpi4py 库时出现编译报错,报错信息为:

  1. line 301: x86_64-conda_cos6-linux-gnu-cc: command not found
  2. failure.
  3. removing: _configtest.c _configtest.o
  4. error: Cannot compile MPI programs. Check your configuration!!!
  5. [end of output]
  6. note: This error originates from a subprocess, and is likely not a problem with pip.
  7. ERROR: Failed building wheel for mpi4py
  8. Failed to build mpi4py
  9. ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects

所以导致该错误的原因是

  1. x86_64-conda_cos6-linux-gnu-cc: command not found

即没有找到 x86_64-conda_cos6-linux-gnu-cc。只需执行以下命令安装即可:

  1. conda install gcc_linux-64

安装完成后重新执行 pip install mpi4py 即可完成安装。




pip install mpi4py报错:ERROR: Could not build wheels for mpi4py, which is required to install pyprojec_linux_两只程序猿-华为云开发者联盟

发表评论

表情:
评论列表 (有 0 条评论,136人围观)

还没有评论,来说两句吧...

相关阅读