1 查看python版本
which python
python -v
2 相关库的安装
sudo yum install python-numpy
sudo yum install python-matplotlib
sudo yum install python-future sudo yum install python-scipy
sudo yum install python-pathlib
我的是python2版本,如果是python3版本在相应的python后面写成python3就好了
测试是否安装成功
python
import numpy
如果不报错就是安装成功
3 安装obspy
在GitHub上下载ObsPy库的压缩包 https://github.com/obspy/obspy
1)解压
unzip obspy-master.zip
2)进入obspy-master
cd obspy-master
3)安装
sudo python setup.py develop
结束后,测试是否安装成功
python
import obspy
如果不报错就是安装成功
官网安装步骤
https://github.com/obspy/obspy/wiki/Installation-via-Anaconda