OpenMPI
in here XXX is you computer name
mkdir /home/XXX/Software/openmpi
cd /home/XXX/Software/openmpi
wget http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.1.tar.gz
tar xzvf openmpi-1.4.1.tar.gz
mkdir openmpi
cd openmpi-1.4.1
./configure --prefix = /home/XXX/Software/openmpi/openmpi
make all install
then cd ..
cd openmpi
這時(shí)候此目錄下有bin ,lib,local....等文件夾.
in ~/.profile中加入環(huán)境變量
export PATH=/home//home/zhb/install/openmpi/bin:$PATH
export LD_LIBRARY=/home/zhb/install/openmpi/lib:$LD_LIBRARY
last:
source ~/.profile
end openmpi
mpi4py
在mpi4py網(wǎng)址下載mpi4py源碼,然后在shell中執(zhí)行
tar -zxvf mpi4py.zip
cd mpi4py dir
因爲(wèi)我用conda中python3的環(huán)境安裝
故 conda activate, 啓動(dòng)base environment in anaconda,
the version of python is 3.6
then
$ python setup.py build
no error then
$ *python setup.py install*一般我不用這個(gè)方式桨菜,爲(wèi)了卸載方便,加上參數(shù)知态,--record,記錄下做了什麼操作,即:
$ **python ./setup.py install --record install.txt**
要卸載setup.py安裝的軟件包時(shí)立叛,只需要
cat install.txt | xargs rm -rf
or you are only user not root, you can directely use
IN THE tiger Cluster:
$ python setup.py install --user --record install.txt