深度学习笔记-1. 环境准备

  1. 相关学习资料
  1. 初始环境配置
# 下载安装脚本:https://conda.io/en/latest/miniconda.html
# 安装miniconda
#macos
sh Miniconda3-py39_4.12.0-MacOSX-x86_64.sh -b
#linux
sh Miniconda3-py39_4.12.0-Linux-x86_64.sh -b
# 初始话shell
~/miniconda3/bin/conda init
# 新建虚拟环境
conda create --name d2l python=3.9 -y
# 激活虚拟环境
conda activate d2l
# 在虚拟环境中安装jupyter notebook
conda install jupyter
# 运行jupyter notebook
jupyter notebook
# 安装必要的学习包
pip install torch==1.12.0
pip install torchvision==0.13.0
pip install d2l==0.17.6
# 下载示例源码
mkdir d2l-zh && cd d2l-zh
curl https://zh-v2.d2l.ai/d2l-zh-2.0.0.zip -o d2l-zh.zip
unzip d2l-zh.zip && rm d2l-zh.zip
cd pytorch

posted on 2024-07-22 13:02  朝朝暮Mu  阅读(62)  评论(0)    收藏  举报