安装对应版本pytorch和torchvision

遇见报错:

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)

ERROR: No matching distribution found for torch

解决方法:

1、网站找到对应torch和torchvision版本,cp对应python版本,cu对应的是gpu版本的torch:https://download.pytorch.org/whl/torch_stable.html

2、下载对应版本

3、在下载的whl文件对应目录下打开cmd,进入对应虚拟环境,pip install xxx.whl即可

PS:安装后,通过torch.cuda.is_available()命令来判断是否是gpu版本

相关推荐
geovindu32 分钟前
python:DecisionTree
开发语言·后端·python·算法
码农飞哥1 小时前
WorkBuddy 六步,把每天点的几十下做成扩展
人工智能·效率·ai工具·workbuddy
aimartec1 小时前
跨城定制软件与APP开发技术选型与源码验收规范(中小企业实用版)
人工智能
怒放的生命19912 小时前
代码知识库 RAG 问答系统 —— 从 0 到 1 实现教程
python·状态模式·fastapi·全栈开发·ai agent应用开发
geovindu2 小时前
python: Decision Tree Regressor
开发语言·后端·python·算法·决策树
Joy T2 小时前
Spring Security 从 Acegi 到 AI Agent——JWT、角色鉴权与异步任务安全实战
人工智能·安全·spring·spring security·json web token·securitycontext·多次鉴权
AIHR数智引擎3 小时前
拆掉“关键人依赖”:黄仁勋复职全员会上的四道组织切口
人工智能·经验分享·职场和发展·ai-native·英伟达·aihr
Flynn Liang3 小时前
全栈实战:从零搭建一套可落地的生产级 AI 智能体系统(Redis 版)
人工智能·redis·ai agent
小九九的爸爸3 小时前
为了收第一笔钱,我终于打通OPC支付链路
人工智能·程序员·全栈