安装(动手学深度学习)
- 购买一个服务器,没有服务器。也可以在自己的电脑上面搞一个VM虚拟机完成任务。使用Ubuntu.
- 先换源,然后sudo apt-get update sudo apt-get upgrade
- 下载个编译器 sudo apt-get install build-essential
- python环境 sudo apt-get install python3.8
- 安装Mincoda https://repo.anaconda.com/miniconda/Miniconda3-py38_4.11.0-Linux-x86_64.sh
- 下载个解压软件zip sudo apt-get install zip
- 执行bash Miniconda3-py38_4.11.0-Linux-x86_64.sh
- 进入conda环境 bash
- 安装一些软件 sudo apt-get install jupyter d2l torch torchvision
- 下载电子书 wget https://zh-v2.d2l.ai/d2l-zh.zip
- 解压 unzip d2l-zh.zip
- 下载课程PDF git clone https://github.com/d2l-ai/d2l-zh (没有git 先安装git)
- 运行jupyter jupyter notebook
- 如果是用服务器 需要将服务器8888端口映射到本地 ssh -L8888:locahost:8888 root@100.10.1.1
在本地的电脑cmd中运行上面命令。 - 在浏览器输入jupyter运行的服务网址
- 在cmd 中安装rise插件 pip install rise