一、说明
我们安装了pytorch环境之后,会用yolo v9 来测试一下,看8g 显存能不能跑下来,上次用无影云电脑,4cpu+8g内存直接爆了,云电脑也死机了,提示一直占用内存不释放,我自己的云电脑不能占用内存,所以很黑啊,这云电脑和我们自己装的虚拟机差不多,几个虚拟机不是实给的资源,是共用的吧,我用了8g满了,而且不释放,这样不行啊,直接让你死机了,废话少说,Anaconda3我们前面文章里装过了,
二、安装Anaconda3
008、Python+fastapi,第一个后台管理项目走向第8步:ubutun 20.04下安装vscode+python环境配置-CSDN博客
wget 下载
wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh
bash Anaconda3-2024.02-1-Linux-x86_64.sh
#为了能让系统找到conda程序
source ~/.bashrc
(base) victor@victor:~/tools$ conda -V
conda 24.1.2
这表示安装成功了
三、安装虚拟环境
1、配置清华源
以前我们用新的python都会出问题,这次我们用python12看看行不行
conda config --remove-key channels
#添加镜像源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add c