标题说明了一切。我在我的AWS实例上安装了Intel MPI,并已将其激活以进行激活,which mpiexec
正常工作并告诉我其Intel MPI。我现在没有安装任何其他MPI。也设置了$MPICC
。
正在运行
pip install mpi mpi4py --no-cache-dir
导致以下错误(这是最后一段,另请参见full error message):
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.
我想我明白了。我链接了错误的mpicc,该mpicc是源代码,尚未编译。当我做“哪个mpicc”时,我意识到了这一点。