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

相关推荐
贝锐9 小时前
从国产化信创设备到商用安卓终端,向日葵如何帮助企业实现统一运维管理?
linux·运维·远程控制
Julien200410 小时前
调查和解决 SELinux 问题
linux·运维·服务器·网络·学习方法
天远Date Lab11 小时前
零信任架构实战:基于天远双人婚姻评估查询构建自动化房产按揭联合审查网关
运维·人工智能·架构·自动化
2601_9620746812 小时前
自己编译RustDesk,并将自建ID服务器和key信息写入客户端
运维·服务器
小张同学a.12 小时前
Docker 容器实战 1—— docker 基础与镜像构建
linux·运维·docker·容器
大模型丫丫12 小时前
Hermes Agent:轻量级智能体框架实战指南
大数据·运维·服务器
考虑考虑13 小时前
kubectl命令
运维·后端·自动化运维
NJCloud13 小时前
Docker 容器技术入门:部署、核心概念与基础命令
运维·docker·容器
2601_9620723313 小时前
docker自建rustdesk-server远程桌面
运维·docker·容器
Blockchina14 小时前
Codex 实战:从一句需求到可验收的 Linux 主机巡检脚本
运维·服务器·网络