启用wsl(ubuntu装了miniconda)后安装python、cdo和ncl
📅 2026/7/17 20:44:04
👁️ 阅读次数
📝 编程学习
1、conda create -n climate python=3.11
2、conda activate climate
3、conda install -c conda-forge cdo
4、conda create -nncl_pp-c conda-forge ncl
5、ls -a
6、vim .bashrc
7、shift+g,输入
export DISPLAY=:0.0
export PATH=/home/name/miniconda3/envs/ncl_stable/bin:$PATH
export NCARG_ROOT=/home/name/miniconda3/envs/ncl_stable
esc后,wq:
8、source ~/.bashrc
9、回到base环境下
conda config --add channels conda-forge添加软件包下载源
conda config --set channel_priority strict首先从conda-forge下载
conda install -c conda-forge mamba
10、 mamba install -n climate numpy scipy pandas xarray netcdf4 h5netcdf dask matplotlib cartopy seaborn cfgrib metpy
编程学习
技术分享
实战经验