pip install mpi4py报错:ERROR: Could not build wheels for mpi4py, which is required to install pyprojec
短信预约 -IT技能 免费直播动态提醒
在 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 mpi4pyFailed to build mpi4pyERROR: 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
即可完成安装。
来源地址:https://blog.csdn.net/baidu_36499789/article/details/127176475
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341