【已解决】ERROR: No matching distribution found for torch.安装torch一次性解决方法

建议收藏这个方法,python pip 安装依赖失败,多数都可以通过这个方法解决

文章目录

环境

python 安装 torch


异常

bash 复制代码
(base) ➜  ComfyUI git:(master) pip install -i https://pypi.mirrors.ustc.edu.cn/simple torch
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

原因

无法拉取,可能是镜像问题


直接解决方案

手动下载到本地,本地安装。

下载地址:(选择对应操作系统、系统架构和 python版本的依赖)

bash 复制代码
https://download.pytorch.org/whl/torch_stable.html

命令:

bash 复制代码
pip install ~/Downloads/torch-1.9.1-cp39-none-macosx_11_0_arm64.whl

解释:(一定选择对应版本的依赖,如果找不到对应依赖,可以升降 python 版本)

bash 复制代码
torch-1.9.1-cp39-none-macosx_11_0_arm64.whl

cp39: 指 python3.9

macosx: 操作系统

arm64: 系统架构

成功

Web UI 地址 :

bash 复制代码
http://127.0.0.1:8188/

启动日志:

UI 界面效果:

相关推荐
云水初33 分钟前
【agent篇】RAG Agent避坑指南(附高级RAG Agent汇总)
开发语言·笔记·python·学习·langchain·agent·rag
薛定猫AI39 分钟前
【技术干货】多AI团队大模型协作编排与编程项目评测架构解析
python·机器学习·ai·大模型·技术实战
外收内放40 分钟前
数据分析(图表信息详解)
python·学习·数据分析·matplotlib
1-1=01 小时前
Python3 开发环境
python
miofly1 小时前
GitHub 今日推荐|MOSS-Image:靠坐标框精确控制文字排版的图像生成模型
python·开源·github
Tiandaren1 小时前
么是agent、为什么要做agent、怎么做agent、怎么工程化
人工智能·python·深度学习·大模型
张张123y2 小时前
后端第十一课:RAG 落地实战(从 0 到 1 接上私有知识库,并设计一个好用的 RAG)
开发语言·人工智能·python·机器学习·fastapi·rag
golang学习记2 小时前
Python vs Go:2026年到底该怎么选
java·vscode·python·golang·pycharm·goland
江厌012 小时前
移动工作站还是塔式?用三个数判断工位形态,再谈配置
python·移动工作站·塔式工作站·工作站选型·isv认证
川石课堂软件测试2 小时前
涨薪技术|0到1学会性能测试第8课-Analysis分析图
服务器·数据库·python·sql·jmeter·mysql·容器