Downloading

The MPI for Python package is available for download at the project website generously hosted by Google Code. You can use curl or wget to get a release tarball:

$ curl -O http://mpi4py.googlecode.com/files/mpi4py-X.X.X.tar.gz
$ wget http://mpi4py.googlecode.com/files/mpi4py-X.X.X.tar.gz

unpacking¶

After unpacking the release tarball:

$ tar -zxf mpi4py-X.X.X.tar.gz
$ cd mpi4py-X.X.X

the distribution is ready for building.

building

edit mpi.cfg,

[openmpi]
include_dirs = /usr/local/mpi/include
libraries = mpi
library_dirs = /usr/local/mpi/lib
runtime_library_dirs = /usr/local/mpi/lib

and then run the build command, perhaps specifying you custom configuration section:

$ python setup.py build --mpi=openmpi

Installing

After building, the distribution is ready for install. If you have root privileges (either by log-in as the root user of by using sudo) and you want to install MPI for Python in your system for all users, just do:

$ python setup.py install

The previous steps will install the mpi4py package at standard location prefix/lib/pythonX.X/site-packages.

最新文章

  1. CSS入门常见的问题
  2. Monkey测试1——Monkey的使用
  3. PySe-001-基础环境配置(MacOX)
  4. Java API —— 多线程(2)
  5. Zookeeper3.4.6部署伪分布集群(Apache)
  6. string 与char* char[]之间的转换
  7. 通过xib创建控制器
  8. windows phone (20) Image元素
  9. PowerDesigner设置
  10. SVG的text使用
  11. Echarts 报错:Uncaught Error: [MODULE_MISS]"echarts/config" is not exists!
  12. css-div翻转动画
  13. Android 系统(64)---Android中m、mm、mmm、mma、mmma的区别【转】
  14. unity 随笔
  15. .NET Core 中读取appsettings.json配置文件的方法
  16. 『PyTorch』第三弹重置_Variable对象
  17. NULL指针引起的一个linux内核漏洞
  18. charles抓包误点deny处理办法及日常抓包
  19. Linux IO
  20. Git/Github Learning

热门文章

  1. 【React Native 实战】微信登录
  2. VirtualBox从USB设备(PE)启动
  3. PERL 学习
  4. 在C语言中,double、long、unsigned、int、char类型数据所占字节数
  5. arcgis gdb含下划线_和%的查询 by gisoracle
  6. 【阿里云产品公测】消息队列服务MQS java SDK 机器人应用初体验
  7. Django升级1.6之后出现“Bad Request (400)”错误的解决方案
  8. java 解析XML文档
  9. 【递归】数字三角形 简单dp
  10. Nginx负载趟过的坑