LiCSBAS安装
1、python最好安装3.8版本,另外其他的库安装如下:
conda install gdal=3.4.1
conda install matplotlib=3.5.1
conda install astropy beautifulsoup4 h5py numpy psutil requests shapely statsmodels
conda install cupy
2、在home文件夹下安装软件包
git clone https://github.com/yumorishita/LiCSBAS.git
3、添加环境变量
export LICSBAS_PATH= LICSBAS_PATH=/home/用户名/LiCSBAS
export PATH=“
L
I
C
S
B
A
S
P
A
T
H
/
b
i
n
:
LICSBAS_PATH/bin:
LICSBASPATH/bin:PATH”
export PYTHONPATH=“
L
I
C
S
B
A
S
P
A
T
H
/
L
i
C
S
B
A
S
l
i
b
:
LICSBAS_PATH/LiCSBAS_lib:
LICSBASPATH/LiCSBASlib:PYTHONPATH”
更新:source ~/.bashrc
4、验证软件安装是否成功
LiCSBAS_check_install.py
若提示LiCSBAS install is OK,则安装成功
5、在使用中若报错如下:
AttributeError: module ‘typing_extensions’ has no attribute ‘OrderedDictTypedDict’
则可能的原因如下:
(1)确保你使用的是兼容的Python版本。typing_extensions.OrderedDictTypedDict在Python 3.8+中才可用。你可以通过运行以下命令来检查你的Python版本:
python --version
如果你的Python版本低于3.8,请尝试升级到较新的版本。
(2)如果你已经使用了兼容的Python版本,可以尝试更新typing_extensions库。使用以下命令来更新该库:
pip install -U typing-extensions