sudo apt update
sudo apt install build-essential
//由于Ubuntu22.04自带python3.10,所以直接下载一个Miniconda;
bash Miniconda3-py310_23.3.1-0-Linux-x86_64.sh
(中间全部yes)
bash
(进入conda环境,如果想退出环境就conda deactivate)
pip install jupyter d2l torch torchvision -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
//如果想停止下载就按ctrl+c
wget https://zh-v2.d2l.ai/d2l-zh.zip
sudo apt install zip
ls
unzip d2l-zh.zip
sudo apt install git
git clone https://github.com/d2l-ai/d2l-zh-pytorch-slides
jupyter notebook
虚拟机使用的是Vmware17+Ubuntu22.04.2;
一开始用清华源的时候pip速度时快时慢,用系统自带源极慢,所以在pip install jupyter d2l torch torchvision时用了豆瓣源;
building wheel for pandas(pyproject.toml)的时候比较慢,需要耐心等待;