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

The python dependencies could not install #34

Open
guguji5 opened this issue Aug 21, 2023 · 3 comments
Open

The python dependencies could not install #34

guguji5 opened this issue Aug 21, 2023 · 3 comments

Comments

@guguji5
Copy link

guguji5 commented Aug 21, 2023

Describe the bug
Could not install the dependencies on macbook m1 pro

fl@bogon tennis-tracking % pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting requests==2.23.0 (from -r requirements.txt (line 1))
  Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
ERROR: Could not find a version that satisfies the requirement opencv_contrib_python==4.1.2.30 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66, 4.7.0.68, 4.7.0.72, 4.8.0.74, 4.8.0.76)
ERROR: No matching distribution found for opencv_contrib_python==4.1.2.30

fl@bogon tennis-tracking % python3 --version
Python 3.9.6
@shukkkur
Copy link
Member

shukkkur commented Sep 5, 2023

@guguji5 Hey)

Apologies, I have no idea on what to suggest besides figuring out what the error message says 😅
In case you find. Please share with fellow developers.

@bobobdd
Copy link

bobobdd commented Jan 13, 2024

@guguji5
I have the same question
just trying different python version and new environment

@yoy333
Copy link

yoy333 commented Apr 9, 2024

Here is what I did: it seems to work for me. Its a hotfix and I'm a novice so bear with me. First, install all of the dependencies manually from requirements.txt. This will make sure everything is the latest version. If you use older versions, the new python version has some depreciations. Use pip install [package name] (no version specified). Secondly, I found that you need to rename the file in WeightsTracknet to .h5 and the corresponding file path in predict_video.py. It has to do with the new version of Keras, I think.

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

4 participants