簡體   English   中英

蘋果M1無法安裝torch 1.7.0

[英]Cannot install torch 1.7.0 in apple M1

我正在嘗試使用以下命令在我的 Mac M1 上安裝 yolov5:

 git clone https://github.com/ultralytics/yolov5.git

然后:

cd yolov5

但是當我嘗試使用以下命令從 requirments.txt 文件安裝要求時:

pip install -r requirements.txt

安裝完成但最后顯示以下錯誤:

ERROR: Could not find a version that satisfies the requirement torch>=1.7.0 (from versions: none)
ERROR: No matching distribution found for torch>=1.7.0

我不知道必須使用哪個版本的 torch 才能完成安裝

看起來這個問題是最新的 python 版本的常規問題。

您能否嘗試將您的 python 版本降級到 3.8,然后重試您的 requirements.txt

https://github.com/pytorch/pytorch/issues/47354

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM