如何配置 linux 系统的conda 环境

conda create -n qwe39 python=3.9

(conda create -n name python=3.9)

qwe39是我创建的环境的名字

激活环境 conda activate qwe39

下载 pytorch 和torchvision

查看 服务器的配置

nvidia-smi

查看 右上角 CUDA Version: 12.4

所以------>下载的 CUDA Version 要 小于等于 12.4

打开 pytorch 官网

Get Started

复制Run this Command 中的命令,这里我用的12.1版本的,我把Run this Command 中的命令中的cu126修改为了cu121

运行pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121

下载其他安装包

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

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

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

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

pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

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

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

这里-i https://pypi.tuna.tsinghua.edu.cn/simple是加清华源加速训练

相关推荐
下一页盛夏花开5 分钟前
ubuntu 20中安装QT以后出现红色空心断点
linux·运维·ubuntu
sanshanjianke43 分钟前
Thunderobot 911ME 笔记本 Linux 风扇控制研究
linux
sxgzzn3 小时前
光伏数智化综合平台:让光伏电站运维更智能、更高效
运维
fengyehongWorld3 小时前
TeraTerm ttl脚本登录wsl
linux·teraterm
乌托邦的逃亡者4 小时前
Linux中如何检测IP冲突
linux·运维·tcp/ip
一曦的后花园4 小时前
linux搭建promethes并对接node-exporter指标
linux·运维·服务器
乌托邦的逃亡者5 小时前
CentOS/Openeuler主机中,为一个网卡设置多个IP地址
linux·运维·网络·tcp/ip·centos
拾贰_C5 小时前
【OpenClaw | openai | QQ】 配置QQ qot机器人
运维·人工智能·ubuntu·面试·prompt
桌面运维家5 小时前
服务器进程异常监控:快速定位与排障实战指南
运维·服务器