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

相关推荐
不仙5201 小时前
VMware Workstation 26.0.0 在 Ubuntu 24.04 (内核 6.17.0) 上的安装与内核模块编译问题
linux·ubuntu·elasticsearch
AI视觉网奇2 小时前
linux 检索库 判断库是否支持
java·linux·服务器
dapeng-大鹏2 小时前
KVM+LVM 零停机在线扩容 Ubuntu 根分区:从磁盘添加到逻辑卷扩展完整
linux·运维·ubuntu·磁盘空间扩展
乐维_lwops2 小时前
案例解读|运维监控助力某大型卷烟厂构建高效运维监控体系
运维·运维案例
JiaWen技术圈2 小时前
网站用户注册行为验证码方案
运维·安全
仙柒4152 小时前
Docker存储原理
运维·docker·容器
DolphinDB2 小时前
漫长人工,耗费存储?用 BackupRestore 模块一站式解决跨环境数据同步难题
运维·后端·架构
闫记康2 小时前
Linux学习day5
linux·chrome·学习
TechPioneer_lp2 小时前
30 岁硕士 Linux C 开发背景,未来想去澳洲就业,研究方向该选 AI、SDN 漏洞还是 Linux 内核?
linux·人工智能·职业规划·澳洲求职
_kerneler4 小时前
[qemu+kvm]: trap 寄存器脱敏优化方法
linux