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

Numpy dependency conflict #180

Open
aolko opened this issue Oct 26, 2023 · 7 comments
Open

Numpy dependency conflict #180

aolko opened this issue Oct 26, 2023 · 7 comments

Comments

@aolko
Copy link

aolko commented Oct 26, 2023

Python 3.11.6, vs c++ build tools 2022, installing via launcher

ERROR: Cannot install -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 11), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 13), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 14), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 15), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 16), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 17), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 18), -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 23) and -r D:\Programs\SillyTavern-extras\requirements-complete.txt (line 25) because these package versions have conflicting dependencies.

The conflict is caused by:
    torchvision 0.15.1 depends on numpy
    accelerate 0.20.3 depends on numpy>=1.17
    transformers 4.28.1 depends on numpy>=1.17
    diffusers 0.17.1 depends on numpy
    silero-api-server 0.2.9 depends on numpy
    chromadb 0.4.10 depends on numpy>=1.22.5; python_version >= "3.8"
    sentence-transformers 2.2.2 depends on numpy
    openai-whisper 20230314 depends on numpy
    tts 0.15.6 depends on numpy==1.22.0; python_version <= "3.10"

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
@Cohee1207
Copy link
Member

Is there any specific module you are trying to use? TTS (coqui) package is creating the most incompatibilities so if you don't need it - remove from dependencies

@aolko
Copy link
Author

aolko commented Oct 26, 2023

Is there any specific module you are trying to use? TTS (coqui) package is creating the most incompatibilities so if you don't need it - remove from dependencies

No, since i don't have to pick any modules yet. All i did is press that launcher button

@hidoba
Copy link

hidoba commented Oct 28, 2023

Same here. I specifically need TTS.

@Cohee1207
Copy link
Member

@hidoba do you have both Python 3.11 and VS build tools installed?

@Ph0rk0z
Copy link
Contributor

Ph0rk0z commented Oct 28, 2023

It's working fine for me with 1.24.4 in linux and also with new coqui. Just change the versions in requirements.txt.

@aolko
Copy link
Author

aolko commented Oct 29, 2023

It's working fine for me with 1.24.4 in linux and also with new coqui. Just change the versions in requirements.txt.

send the gist with fixed versions?

@Ph0rk0z
Copy link
Contributor

Ph0rk0z commented Oct 29, 2023

Just install https://pypi.org/project/TTS/#files for your python version and do pip install numpy==1.24.4, that's all there is to it. I am at the point of ignoring people's requirements.txt and updating what needs to be done manually. Too many cases of trying to downgrade torch/transformers for me or other packages for no reason.

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