我正在使用这个令人惊叹的 IPython 笔记本。我现在对并行计算非常感兴趣,并希望将 MPI 与 IPython(和 MPI4py)一起使用。但我无法启动集群
ipcluster 启动 -n 4
在 Windows7 上。我刚回来“无法创建进程”。如果我使用笔记本并在“集群”寄存器中启动一个集群,那么一切正常。但是使用 cmd (即使具有管理员权限)我只会收到此消息。与使用 MPI (MPICH2) 的所有尝试相同。所有路径变量都已设置。也许这个问题根本与Python无关......
我正在使用这个令人惊叹的 IPython 笔记本。我现在对并行计算非常感兴趣,并希望将 MPI 与 IPython(和 MPI4py)一起使用。但我无法启动集群
ipcluster 启动 -n 4
在 Windows7 上。我刚回来“无法创建进程”。如果我使用笔记本并在“集群”寄存器中启动一个集群,那么一切正常。但是使用 cmd (即使具有管理员权限)我只会收到此消息。与使用 MPI (MPICH2) 的所有尝试相同。所有路径变量都已设置。也许这个问题根本与Python无关......
I can't say anything about IPython's parallel features, but if you're having problems with MPI in Windows in general, I would offer these suggestions. I've had quite a few issues in the past in trying to get MPI working in Windows. The most convenient method for me in the past has been to use an OpenMPI Windows binary http://www.open-mpi.org/software/ompi/v1.6/. These are now only available in previous releases. And even then, you might have to try more than one before you find one that works. I don't know why, but the latest didn't work on my machine. The release before that one did, however. After this, you have to call mpicc and mpiexec from the Microsoft Visual Studio Command Prompt or it won't work (without a lot of other stuff).
After you have verified that MPI is working, you can try installing mpi4py separately and see if that works. In my experience, sometimes this has worked fine and sometimes I've had to wrestle with configurations. You might just try your luck with an unofficial, prepackaged binary (for example, http://www.lfd.uci.edu/~gohlke/pythonlibs/).
Hope this helps!