更新

sudo apt update

在这里插入图片描述

安装C/C++的编译环境

其目的是安装gcc以及g++

sudo apt install build-essential

如果询问[y/n]选y然后回车,这里可能有些慢,请耐心等待

安装python3.8

sudo apt install python3.8

下载miniconda

miniconda地址:https://docs.conda.io/en/latest/miniconda.html
在这里插入图片描述
在这里插入图片描述
找到linux的python3.8版本,然后复制链接
在Linux中下载

wget 链接

我这里用的是

wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.11.0-Linux-x86_64.sh

在这里插入图片描述

下载zip

sudo apt install zip

安装miniconda

bash 上面红框框出的文件名

我这里是

bash Miniconda3-py38_4.11.0-Linux-x86_64.sh

然后一路回车和yes
在这里插入图片描述
如果有这个提示,说明安装完成

安装完成后可以通过bash进入conda环境
在这里插入图片描述

安装jupyter、d2l和torch

pip install jupyter d2l torch torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple

安装rise

pip install rise -i https://pypi.tuna.tsinghua.edu.cn/simple
Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐