标题说明了一切。我在我的 AWS 实例上安装了 Intel MPI,并已获取它以激活、which mpiexec
工作并告诉我它是 Intel MPI。我现在没有安装任何其他 MPI。$MPICC
也设置好了。
跑步
pip install mpi mpi4py --no-cache-dir
导致以下错误(这是最后一段,另请参阅完整的错误消息):
ERROR: Command errored out with exit status 1: /home/ubuntu/miniconda3/envs/IQS/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1k4oxnqu/mpi4py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1k4oxnqu/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dj568ctj/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/miniconda3/envs/IQS/include/python3.8/mpi4py Check the logs for full command output.