Anaconda 导入 mpi4py 但不导入 mpi
Anaconda import mpi4py but not mpi
我在 32 位 windows 系统上安装了 anaconda。然后使用 conda install 安装 mpi4py 包。
conda search mpi4py
Fetching package metadata .......
mpi4py 2.0.0 py27_0 defaults
* 2.0.0 py27_msmpi_0 mpi4py
2.0.0 py34_0 defaults
2.0.0 py35_0 defaults
* 应该表示已安装,对吧?
所以在 anaconda 终端提示符下,我可以 运行 python 并执行
import mpi4py
没有错误。
然而,
from mpi4py import MPI
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
mpi4py 的 conda 存储库没有更多说明,这让我觉得这里的配置存在一些问题。我错过了什么吗?
您的系统上似乎没有安装 Microsoft MPI。您在 conda install mpi4py
时是否收到以下消息?
mpi4py requires that Microsoft MPI 6 be installed on the host
system. That is a systemwide installation that is currently
not available through conda. In order to successfully use
mpi4py you must install Microsoft MPI and then append the bin
directory of the MPI installation to your PATH environment
variable. To install Microsoft MPI see
https://www.microsoft.com/en-us/download/details.aspx?id=47259
尝试下载该安装程序,然后重试。
我在 32 位 windows 系统上安装了 anaconda。然后使用 conda install 安装 mpi4py 包。
conda search mpi4py
Fetching package metadata .......
mpi4py 2.0.0 py27_0 defaults
* 2.0.0 py27_msmpi_0 mpi4py
2.0.0 py34_0 defaults
2.0.0 py35_0 defaults
* 应该表示已安装,对吧?
所以在 anaconda 终端提示符下,我可以 运行 python 并执行
import mpi4py
没有错误。
然而,
from mpi4py import MPI
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
mpi4py 的 conda 存储库没有更多说明,这让我觉得这里的配置存在一些问题。我错过了什么吗?
您的系统上似乎没有安装 Microsoft MPI。您在 conda install mpi4py
时是否收到以下消息?
mpi4py requires that Microsoft MPI 6 be installed on the host system. That is a systemwide installation that is currently not available through conda. In order to successfully use mpi4py you must install Microsoft MPI and then append the bin directory of the MPI installation to your PATH environment variable. To install Microsoft MPI see https://www.microsoft.com/en-us/download/details.aspx?id=47259
尝试下载该安装程序,然后重试。