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

Question:

I’m trying to install yolov5 on my Mac M1 using the followwing commands:

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

then:

cd yolov5

But when I tried to install the requirmets from the requirments.txt file with below command:

pip install -r requirements.txt

The instllation complete but show below error at the end:

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

I don’t know which version of torch I have to use to complete the installation

Asked By: KapoNYC

||

Answers:

Looks like this issue has been a regular for the latest python versions.

Could you please try downgrading your python version to 3.8 and retry your requirements.txt

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

Answered By: Kulasangar
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.