03 安装【动手学深度学习v2】

本地安装
wget https://zh-v2.d2l.ai/d2l-zh.zip
unzip d2l-zh.zip
jupyter notebook

Anaconda prompt 命令行中
使用命令:pip install jupyter d2l torch torchvision
环境配置博客推荐(来自评论区大佬)
1:2.1 环境配置 - Dive-into-DL-PyTorch (tangshusen.me)
2.动手深度学习--windows环境安装_诸葛三石的博客-CSDN博客
镜像安装
国内云服务器 换国内源 pip install xxx(包名) -i https://pypi.tuna.tsinghua.edu.cn/simple 清华镜像
如:pip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
阿里云
pip install torch torchvision -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
我的方法是下载他的记事本文件j解压放到安装好的jupyter 安装目录下,cmd 切换到jupyter 的安装目录下再使用jupyter notebook命令打开notebook就可以啦,具体步骤如下




