记录踩过的坑-PyTorch

安装报错

按PyTorch官网给出的命令

复制代码
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

报错

复制代码
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

原因:当前python版本过低(我是3.6)

解决方法:用Anaconda重新建一个Python高版本环境(比如3.10)

RuntimeError: Distributed package doesn't have NCCL built in

我的是Windows系统,不支持nccl

在运行的py文件最开始加代码

复制代码
import os
os.environ["PL_TORCH_DISTRIBUTED_BACKEND"] = "gloo"

修改类似地方,把nccl改成gloo

复制代码
torch.distributed.init_process_group("nccl")
相关推荐
志栋智能10 分钟前
自动化运维真的只能选复杂平台吗?
运维·网络·数据库·人工智能·自动化
AC赳赳老秦11 分钟前
低代码AI化革命:DeepSeek引领智能开发新纪元
网络·人工智能·安全·web安全·低代码·prometheus·deepseek
波动几何13 分钟前
市场几何动力学:价格运动三大定律与牛顿范式革命
人工智能
JaydenAI17 分钟前
[拆解LangChain执行引擎]三种持久化模式的差异
python·langchain
LaughingZhu20 分钟前
Product Hunt 每日热榜 | 2026-02-17
大数据·数据库·人工智能·经验分享·搜索引擎
数据智能老司机21 分钟前
Agentic Mesh——Agent 架构
人工智能·llm·agent
老赵全栈实战21 分钟前
《从零搭建RAG系统第4天:问题向量化+Milvus检索匹配+结果优化》
python·ai编程
lynnss_ai23 分钟前
针对 Vibe Coding 的提示工程技巧详细指南
人工智能·vibecoding
Katecat9966325 分钟前
【葡萄病害检测】基于SABL-RetinaNet的葡萄叶片黑腐病、霜霉病、白粉病和锈病自动识别系统
python
华农DrLai26 分钟前
向量嵌入入门:给每个词分配一个“数字指纹“
大数据·人工智能·ai·llm·rag