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

Can't install piper-phonemize in Python #41

Open
Germling opened this issue Sep 12, 2024 · 7 comments
Open

Can't install piper-phonemize in Python #41

Germling opened this issue Sep 12, 2024 · 7 comments

Comments

@Germling
Copy link

I tried pip install piper-phonemize or cloning the Git directory and installing it manually. Now I don't have it and can't use piper-tts...

@Germling
Copy link
Author

Here's the error message:
(piper-env) C:\Users\XXX>pip install piper-tts
Collecting piper-tts
Using cached piper_tts-1.2.0-py3-none-any.whl.metadata (776 bytes)
INFO: pip is looking at multiple versions of piper-tts to determine which version is compatible with other requirements. This could take a while.
Downloading piper_tts-1.1.0-py3-none-any.whl.metadata (776 bytes)
ERROR: Cannot install piper-tts==1.1.0 and piper-tts==1.2.0 because these package versions have conflicting dependencies.

The conflict is caused by:
piper-tts 1.2.0 depends on piper-phonemize~=1.1.0
piper-tts 1.1.0 depends on piper-phonemize~=1.0.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

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

@mrfrostycakes
Copy link

Having same issue on my end exactly. Can't install piper-tts due to piper-phenomize but can't find a version of piper-phenomize with pip

@krazyjakee
Copy link

krazyjakee commented Sep 19, 2024

No builds for windows either. Looks like somebody deployed a borked build

@hadware
Copy link

hadware commented Sep 23, 2024

Same here with leanspeech

@JacsonAnderson
Copy link

I encountered a similar issue, and here's how I managed to fix it on my Windows 10 system:
I removed the piper-phonemize line from the requirements.txt file located at: ~\piper\src\python\requirements.txt

Before:
cython>=0.29.0,<1
piper-phonemize~=1.1.0
librosa>=0.9.2,<1
numpy>=1.19.0
onnxruntime>=1.11.0
pytorch-lightning~=1.7.0
torch>=1.11.0,<2

My modified version:
cython>=0.29.0,<1
librosa>=0.9.2,<1
numpy>=1.24.4
onnxruntime>=1.11.0
pytorch-lightning~=1.7.0
torch>=1.11.0

After installing the updated requirements, I installed piper-phonemize-cross individually:
pip install piper-phonemize-cross

You can find it here:
https://pypi.org/project/piper-phonemize-cross/

This worked perfectly for me.

Hope this helps!

@mrfrostycakes
Copy link

mrfrostycakes commented Oct 23, 2024 via email

@mrfrostycakes
Copy link

mrfrostycakes commented Oct 23, 2024 via email

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

5 participants