Anaconda的虚拟环境中固定python和xarray的版本
·
目录
4.在wrfh_calib虚拟环境安装固定版本的xarray
6.将Jupyter Notebook内核添加到虚拟环境wrfh_calib中
1.配置国内镜像源
# 配置清华镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
2.创建虚拟环境
在安装的anaconda版本(2023.03)中创建python==3.10.19版本的wrfh_calib虚拟环境。
anaconda-navigator
选择python==3.10.19,并命名虚拟环境wrfh_calib。
3.激活虚拟环境wrfh_calib
source activate wrfh_calib
4.在wrfh_calib虚拟环境安装固定版本的xarray
conda install python=3.10.19 xarray=2023.11.0
5.在激活的虚拟环境中安装Jupyter Notebook
conda install jupyter notebook
6.将Jupyter Notebook内核添加到虚拟环境wrfh_calib中
python -m ipykernel install --user --name wrfh_calib
完成!
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)