zzh8829 / yolov3-tf2

YoloV3 Implemented in Tensorflow 2.0
MIT License
2.51k stars 913 forks source link

pip install error #372

Open tocom242242 opened 2 years ago

tocom242242 commented 2 years ago

Hi

When I install packages using pip, the error occur

Environment

Error

pip install -r requirements.txt

And here the output

Obtaining file:///home/yolov3-tf2 (from -r requirements.txt (line 6))
Collecting tensorflow==2.5.0
  Using cached tensorflow-2.5.0-cp38-cp38-manylinux2010_x86_64.whl (454.4 MB)
ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.1.26 (from -r requirements.txt (line 2)) (from    versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.51,     3.4.14.53, 3.4.15.55, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.2.52,     4.5.2.54, 4.5.3.56)    
ERROR: No matching distribution found for opencv-python==4.1.1.26 (from -r requirements.txt (line 2))    
tocom242242 commented 2 years ago

In my case, I changed the version of opencv-python from 4.1.1.26 to 4.3.0.38 and I could install packages.

My new requirements.txt is

tensorflow==2.5.0
opencv-python==4.3.0.38
lxml
tqdm

-e .

And I have confirmed that the following example command works correctly

python detect.py --image ./data/meme.jpg