如何配置 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是加清华源加速训练

相关推荐
INGNIGHT7 小时前
270 · 电话号码的字母组合II(Trie)
linux·算法
zly35007 小时前
VMware Converter Standalone 物理机转化为虚拟机后源1硬盘变成了2个硬盘(2个硬盘文件)虚拟机无法启动。
linux·运维·服务器
智能运维指南7 小时前
2026 企业智能运维平台选型:私有化、信创、全链路打通该怎么权衡?
运维·嘉为蓝鲸·aiops平台·一体化运维平台
春天花会开1318 小时前
Supabase 自部署 Edge Functions 超时从 60s 延长到 360s 完整复盘
运维·云原生
当下新鲜事8 小时前
脱硫脱硝塔动力系统科普:四方DL500变频器工作原理解析
大数据·运维·物联网·业界资讯
Lsetea9 小时前
Nginx报No required SSL certificate was sent:mTLS客户端证书排查
运维·nginx·https·ssl·openssl
GeW9 小时前
从内核到数据:Linux与工业数据库如何支撑高端制造
linux
山岚的运维笔记9 小时前
mysql 专业笔记 -- 第 36 章:MySQL 管理
运维·数据库·笔记·后端·mysql·oracle·dba
DFT计算杂谈10 小时前
TRIQS 4.0.2 完整安装与使用指南
运维
小小的木头人10 小时前
Linux systemd Service 与 Timer 定时任务原理及实战
linux