anaconda3 2020.07_Anaconda3 & isce2

Anaconda3安装

参考:

https://www.digitalocean.com/community/tutorials/how-to-install-anaconda-on-ubuntu-18-04-quickstart​www.digitalocean.com

1.切换路经

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.com
v2-e9c7b60c322929166ccb7cff1b646284_180x120.jpg
鸭毛:ISCE InSAR处理软件安装​zhuanlan.zhihu.com
v2-403ef2b3ef784a87b7ec3fc77d0ac74c_180x120.jpg
conda-forge/isce2-feedstock​github.com
v2-a9a31a4ca5e0315f1e619db3f6817972_ipico.jpg

1.创建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

v2-5cc80946e8a56d11fecad5bd9a8e60c7_b.jpg

v2-322be15ec5710a667b48d596b1958539_b.jpg

yeah!

致谢:本文由好兄弟ricksanchez创作。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值