MPICH2&的问题mpi4py安装 [英] Problem with MPICH2 & mpi4py Installation

查看:179
本文介绍了MPICH2&的问题mpi4py安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows XP2 32位计算机上.我正在尝试安装MPICH2& mpi4py.

I'm on Windows XP2 32-bit machine. I'm trying to install MPICH2 & mpi4py.

  1. 我已经下载了&已安装 MPICH2-1.2.1p1
  2. 我已经下载了& mpi4py
  1. I've downloaded & installed MPICH2-1.2.1p1
  2. I've downloaded & mpi4py

当我在mpi4pi \目录中运行python setup.py install时.我知道了

When I run python setup.py install in mpi4pi\ directory. I get

running install
running build
running build_py
running build_ext
MPI configuration: directory 'C:\Program Files\MPICH2'
MPI C compiler:    not found
MPI C++ compiler:  not found
MPI linker:        not found
checking for MPI compile and link ...
error: Unable to find vcvarsall.bat

我的C:\Program Files\MPICH2\bin被添加到$ PATH&中.它包含:

My C:\Program Files\MPICH2\bin is added in $PATH & it contains:

clog2TOslog2.jar
irlog2rlog.exe
jumpshot.jar
jumpshot_launcher.jar
mpiexec.exe
smpd.exe
TraceInput.dll
traceTOslog2.jar
wmpiconfig.exe
wmpiexec.exe
wmpiregister.exe

我已经在Google上搜索了,但是找不到可以找到解决方案的地方.

I've Googled but no where I could find the solution.

根据Mark的建议,我已经遍历了该安装脚本,发现该脚本正在搜索mpiccmpicxxmpild MPI编译器包装.但是这些包装器脚本未随我的MPICH2安装一起安装.从哪里得到这些?现在怎么了?

As per "High Performance" Mark's suggestion I've gone through that installation script and found that it is searching for mpicc , mpicxx, mpild MPI compiler wrappers. But these wrapper scripts are not installed with my MPICH2 installation. Where to get these? Whats the way now?

推荐答案

我对Python不太了解,但是无论如何这里都是这样:

I don't know much about Python but here goes anyway:

您的安装脚本无法找到C编译器,C ++编译器或链接器.查看脚本内部,查看脚本的位置.修改脚本以查看安装这些项目的位置.您可能(可能还会)发现您可以为安装脚本指定一个参数,以将其指向正确的位置,而无需修改脚本.

Your install script is failing to find a C compiler, C++ compiler or linker. Look inside the script and see where it is looking. Modify the script to look in the location where you have those items installed. You may (probably will) also find that you can specify an argument for the install script to point it at the right location without having to modify the script.

别忘了,MPICH2是用于链接的库和运行时系统的组合,用于执行MPI作业(这就是您的mpiexec.exe).我看到您还安装了Jumpshot Profiler.

Don't forget, MPICH2 is a combination of libraries for linking to and a run-time system, for executing MPI jobs (that's your mpiexec.exe). I see you also have the Jumpshot profiler installed.

MPICH2不是,也不包括编译器.

MPICH2 is not, and doesn't include, a compiler.

HTH

这篇关于MPICH2&的问题mpi4py安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆