加载中…
个人资料
雁过留痕Neo
雁过留痕Neo
  • 博客等级:
  • 博客积分:0
  • 博客访问:131,299
  • 关注人气:24
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

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
   export PYTHONPATH=$HOME/USERPATH/Python-2.7.8
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

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有