Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install error #372

Open
tocom242242 opened this issue Jul 17, 2021 · 1 comment
Open

pip install error #372

tocom242242 opened this issue Jul 17, 2021 · 1 comment

Comments

@tocom242242
Copy link

Hi

When I install packages using pip, the error occur

Environment

  • OS: Ubuntu 20.04
  • Python: 3.8.0

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant