Linux下安装Phonopy
(2015-07-23 11:14:09)
标签:
it |
分类: Linux |
折腾了好久,终于成功安装上了Phonopy,记录一下经验,供大家参考:
首先说一下我已有的编译环境:
1.用cat /proc/version指令查到的Linux内核版本:Linux version 2.6.32 (Red
Hat 4.4.7-4)
2.服务器正常联网,这是为了保证在安装matplotlib的时候可以联网找到需要的库。
3.gcc/icc编译器已经安装好。
下面是安装步骤:
1. Install python
a) download python 2.7.8
b) unzip Python-2.7.8.tgz and change to folder
Python-2.7.8
c) ./configure --prefix=/home/user/USERPATH/Python-2.7.8
d) make
e) make install
f) Revise .bash_profile, add the following line to it
g) Add the path of USERPATH/Python-2.7.8/bin/python to the
environment variable.
2. Install Numpy
a) download numpy-1.8.2.tar.gz, unzip it and change to the
folder
b) python2.7 setup.py build
c) python2.7 setup.py install
3. Install Matplotlib
a) download matplotlib-1.3.1.tar.gz, unzip it and change to
the folder
b) python2.7 setup.py install
c) it will automatically download distribute-0.6.28.tar.gz, if
it's unable to download, we can download manually and put it in the
folder.
4. Install lxml
a) download lxml-3.4.3.tar.gz, unzip it and change to the
folder
b) python2.7 setup.py install
5. Install PyYAML
a) download PyYAML-3.11.tar.gz, unzip it and change to the
folder
b) python2.7 setup.py install
6. Install Phonopy
a) download phonopy-1.9.2-rc5.tar.gz, unzip it and change to
the folder
b) python2.7 setup.py install
--home=/home/user/USERPATH/phonopy
前一篇:2014年杭州马拉松全程经验总结
后一篇:Linux防止恶意登陆