Anaconda3安装
参考:
https://www.digitalocean.com/community/tutorials/how-to-install-anaconda-on-ubuntu-18-04-quickstartwww.digitalocean.com1.切换路经
cd /tmp
2.下载
curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
3.验证数据完整性
sha256sum Anaconda3-2020.07-Linux-x86_64.sh
输出38ce717758b95b3bd0b1797cc6ccfb76f29a90c25bdfa50ee45f11e583edfdbf Anaconda3-2020.07-Linux-x86_64.sh
4.安装(不要进入root下,否则初始化isce会写入/root/.bashrc)
bash Anaconda3-2020.07-Linux-x86_64.sh
敲回车,直到需要输入yes
命令行显示
Anaconda3 will now be installed into this location:
/root/anaconda3
确认或更改安装位置
/home/serena/anaconda3
Do you wish the installer to initialize Anaconda3 by running conda init? [yes|no]
[no] >>> yes
安装成功
Thank you for installing Anaconda3!
5.激活安装
source ~/.bashrc
6.测试是否成功
conda list
isce2安装
参考:
豆豆:Anaconda介绍、安装及使用教程zhuanlan.zhihu.com1.创建isce专用环境
conda create --name isce2_env python=3.8
2.激活创建的环境
conda activate isce2_env
3.加入.bashrc
#activate conda
export ANACONDA=/home/serena/anaconda3
source activate isce2_env
4.给anaconda3权限,否则非root用户无法写入环境
chmod 777 -R '/home/serena/anaconda3'
5.添加conda-forge下载频道并安装isce2(如果没做上步,这步先进入root模式)
conda config --add channels conda-forge
conda install isce2
6.安装matplotlib库
conda install matplotlib
7.cd /home/serena 装isce包
git clone isce-framework/isce2
8.修改.bashrc文件
# ISCE2 #
export ISCE_HOME=/home/serena/anaconda3/envs/isce2_env/lib/python3.8/site-packages/isce
export PATH=$PATH:$ISCE_HOME/applications:$ISCE_HOME/bin
export ISCE_STACK=/home/serena/isce2
export prepStackToStaMPS=/home/serena/isce2/contrib/timeseries/prepStackToStaMPS
export PATH=$prepStackToStaMPS/bin:/home/serena/isce2/contrib/stack/topsStack:$PATH
9.激活更改的.bashrc文件
source .bashrc
10.测试输出
topsApp.py --steps --help
topsApp.py -h