目录
1.在conda shell中,添加一个必要的通道(conda-forge),然后从Anaconda云下载组件库:
4.在激活的虚拟环境中安装Jupyter Notebook(如果尚未安装)
5.在激活的虚拟环境下将虚拟环境添加到Jupyter notebook中
1.在conda shell中,添加一个必要的通道(conda-forge),然后从Anaconda云下载组件库:
conda config --add channels conda-forge
2.创建ncl_esmf虚拟环境
conda create -n ncl_esmf -c conda-forge ncl esmf
3.激活ncl_esmf虚拟环境
# 当前为base虚拟环境时,
conda activate ncl_esmf
# 未进入base虚拟环境时,
source activate ncl_esmf
4.在激活的虚拟环境中安装Jupyter Notebook(如果尚未安装)
conda install jupyter notebook
5.在激活的虚拟环境下将虚拟环境添加到Jupyter notebook中
python -m ipykernel install --user --name ncl_esmf
6.查看Jupyter notebook是否已添加虚拟环境
jupyter kernelspec list
7.激活ncl_esmf虚拟环境
source activate ncl_esmf