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

BUG: The user requested numpy<2 and >=1.23.5 #603

Open
bkosowski opened this issue Sep 18, 2024 · 0 comments
Open

BUG: The user requested numpy<2 and >=1.23.5 #603

bkosowski opened this issue Sep 18, 2024 · 0 comments

Comments

@bkosowski
Copy link
Contributor

Clond the repository on 2024-09-18 on Windows 11 with Python 3.11.

Preparation:

PS D:\AI\Video> cd .\Deep-Live-Cam\
PS D:\AI\Video\Deep-Live-Cam> python -m venv venv
PS D:\AI\Video\Deep-Live-Cam> venv/Scripts/Activate.ps1

When installing with

pip install -r .\requirements.txt

Installation ended with:

INFO: pip is looking at multiple versions of tensorflow-intel to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r .\requirements.txt (line 13), -r .\requirements.txt (line 17), -r .\requirements.txt (line 20), -r .\requirements.txt (line 23), -r .\requirements.txt (line 4), -r .\requirements.txt (line 5), -r .\requirements.txt (line 6), numpy<2 and >=1.23.5 and tensorflow because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested numpy<2 and >=1.23.5
    opencv-python 4.8.1.78 depends on numpy>=1.21.2; python_version >= "3.10"
    opencv-python 4.8.1.78 depends on numpy>=1.23.5; python_version >= "3.11"
    opencv-python 4.8.1.78 depends on numpy>=1.17.0; python_version >= "3.7"
    opencv-python 4.8.1.78 depends on numpy>=1.17.3; python_version >= "3.8"
    opencv-python 4.8.1.78 depends on numpy>=1.19.3; python_version >= "3.9"
    onnx 1.16.0 depends on numpy>=1.20
    insightface 0.7.3 depends on numpy
    torchvision 0.15.2+cu118 depends on numpy
    onnxruntime-gpu 1.18.0 depends on numpy>=1.26.0
    opennsfw2 0.10.2 depends on numpy>=1.22.0
    gfpgan 1.3.8 depends on numpy
    tensorflow-intel 2.12.1 depends on numpy<=1.24.3 and >=1.22

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Full installation log: installation_log.txt

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