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

why i get error ? try install on win 11 vscode #644

Open
GreenAA opened this issue Nov 15, 2024 · 9 comments
Open

why i get error ? try install on win 11 vscode #644

GreenAA opened this issue Nov 15, 2024 · 9 comments

Comments

@GreenAA
Copy link

GreenAA commented Nov 15, 2024

pip3 install -q piper-tts==1.2.0
ERROR: Could not find a version that satisfies the requirement piper-phonemize~=1.1.0 (from piper-tts) (from versions: none)
ERROR: No matching distribution found for piper-phonemize~=1.1.0

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.
Using cached 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

@mylegitches
Copy link

Same. I have found some partial workarounds that I will test and post results here.

@rqxKnicklicht
Copy link

I'm getting the same errors

@thelabcat
Copy link

thelabcat commented Nov 21, 2024

What I found is that piper-phonemize only supports up to Python 3.11. I wish the Pip error was more helpful on this issue. This is not a self-contradictory dependency as I thought, merely the library only being available for an older version of Python. Have confirmed that piper-tts installs with Python 3.11 on Fedora 41 x86-64.

@onionhammer
Copy link

Same

@thelabcat
Copy link

Same

Same error or same solution?

@onionhammer
Copy link

onionhammer commented Nov 28, 2024

Sorry - same error and same solution - use 3.11

I'm always impressed every time I step into the python world - at how bad things are. Why do folks put up with it? I'm not blaming the maintainers here, it's python and its package/dependency management that's an absolute nightmare horrorshow

@thelabcat
Copy link

thelabcat commented Nov 29, 2024

Sorry - same error and same solution - use 3.11

I'm always impressed every time I step into the python world - at how bad things are. Why do folks put up with it? I'm not blaming the maintainers here, it's python and its package/dependency management that's an absolute nightmare horrorshow

I've only found that to be the case with very particular packages, especially involving machine learning where one is interfacing with high power hardware on a deep level AND the technology is rather new, so I was not surprised. The vast majority of packages are not so strict, often going back several Python versions without a problem.

@coffeecodeconverter
Copy link

answers here
#24 (comment)

and installation guide for window here
#24 (comment)

@jgilmore
Copy link

From what I've figured out, this error happens because there's no version of piper-phenomize for python3.12 available on pypi.

To fix it on ubuntu 24.04, I installed python3.11 according to the instructions here and then made a 3.11 venv via instructions here and installed piper_tts, and it just worked™

Here's a copy of the incantations I used as a quick reference and defense against linkrot:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.11 python3.11-venv
python3.11 -m venv venv-311
source venv-311/bin/activate
python3 -V
pip install piper_tts

Success!

Note that the "sudo" commands install python3.11 in your base system. It doesn't matter if your previous venv is activated or not, nor which directory you're in. The non-sudo commands create a new virtual environment named "venv-311", activate it, double-check that "python3" invokes the 3.11 version, and then installs piper-tts in the new virtual environment.

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

7 participants