使用 uv python 包时出现 onnxruntime 错误

问题描述 投票:0回答:1

我在我的项目中使用了 uv。以前一切正常,但从昨天开始,当我进行 uv 同步时,它会抛出这样的错误。它确实创建了虚拟环境,但是当我尝试添加其他包时,它会说

Resolved 147 packages in 0.50ms
error: Distribution `onnxruntime==1.19.2 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

我以为我在我的机器上犯了一些错误,所以我什至在其他新机器甚至服务器上尝试过,但还是出现同样的错误。我也尝试安装 onnxruntime==1.19.2 但它不起作用。

python uv
1个回答
0
投票

错误:无法安装发行版

onnxruntime==1.19.2 @ registry+https://pypi.org/simple
,因为它没有适用于当前平台的源发行版或轮子 运行船员时发生错误:命令'['uv','sync']'返回非零退出状态2。

这里也有同样的问题。 Python 3.12 MacOS 15.0.1 红杉。 然而,它正在工作(可能直到自制更新)。

© www.soinside.com 2019 - 2024. All rights reserved.