安装GCCER之类的东西
sudo apt install build-essential
ubantu 20.4 不需要这句
sudo apt install python3.8
下载miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh
安装 miniconda
bash Miniconda3-py38_4.12.0-Linux-x86_64.sh
进入miniconda
bash
创建d2l新环境
conda create -n d2l python=3.8
激活环境
conda activate d2l
安装需要的包
pip install jupyter d2l torch tochvision
标签:python,创建,sudo,apt,miniconda,d2l,install,linux From: https://www.cnblogs.com/gongchang1412/p/16817668.html