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

  • 使用ubuntu环境

  • 安装miniconda3

查看 https://mirrors.bfsu.edu.cn/help 安装配置镜像等
  • 安装需要的包
pip install jupyter d2l torch torchvision
  • 下载代码并执行
wget https://zh-v2.d2l.ai/d2l-zh.zip
unzip d2l-zh.zip
jupyter notebool
  • 插件
pip install rise
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user --skip-running-check
  • 启动jupyter
# 自定义密码,当前为空
jupyter notebook --no-browser --port=8888 --ip=0.0.0.0 --NotebookApp.token='' --NotebookApp.password=''
# 可以添加一个快捷命令.bashrc
alias jup="nohup jupyter notebook --no-browser --port=8888 --ip=0.0.0.0 --NotebookApp.token='' --NotebookApp.password='' > jupyter.log 2>&1 & "
转载注明出处 一支小白 - 博客园http://www.cnblogs.com/startnow/ - 联系:tungshuaishuai@sina.com
原文地址:https://www.cnblogs.com/startnow/p/14802432.html