本文介绍: 在 conda 环境下。所以导致该错误原因是。

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。只需执行以下命令安装即可

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_两只程序猿-华为云开发者联盟

原文地址:https://blog.csdn.net/u013250861/article/details/133817667

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_34296.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注