linux install mpi4py
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.
最新文章
- CSS入门常见的问题
- Monkey测试1——Monkey的使用
- PySe-001-基础环境配置(MacOX)
- Java API —— 多线程(2)
- Zookeeper3.4.6部署伪分布集群(Apache)
- string 与char* char[]之间的转换
- 通过xib创建控制器
- windows phone (20) Image元素
- PowerDesigner设置
- SVG的text使用
- Echarts 报错:Uncaught Error: [MODULE_MISS]";echarts/config"; is not exists!
- css-div翻转动画
- Android 系统(64)---Android中m、mm、mmm、mma、mmma的区别【转】
- unity 随笔
- .NET Core 中读取appsettings.json配置文件的方法
- 『PyTorch』第三弹重置_Variable对象
- NULL指针引起的一个linux内核漏洞
- charles抓包误点deny处理办法及日常抓包
- Linux IO
- Git/Github Learning
热门文章
- 【React Native 实战】微信登录
- VirtualBox从USB设备(PE)启动
- PERL 学习
- 在C语言中,double、long、unsigned、int、char类型数据所占字节数
- arcgis gdb含下划线_和%的查询 by gisoracle
- 【阿里云产品公测】消息队列服务MQS java SDK 机器人应用初体验
- Django升级1.6之后出现“Bad Request (400)”错误的解决方案
- java 解析XML文档
- 【递归】数字三角形 简单dp
- Nginx负载趟过的坑