rhasspy / piper

A fast, local neural text to speech system
https://rhasspy.github.io/piper-samples/
MIT License
6.59k stars 481 forks source link

Error: pip install piper-tts | Installing with Python doesn't seem to work, missing packages and dependency conflict. #369

Open VikingStudio opened 9 months ago

VikingStudio commented 9 months ago

Installing as per guide

pip install piper-tts

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 attempt to solve the dependency conflict

Isolating version install

pip install 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==1.1.0

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

Tobi-De commented 9 months ago

Having the same issue here

Ionaut commented 9 months ago

Same here

JensC commented 9 months ago

Yes, happens to me too.

TheBricktop commented 9 months ago

Same problem here Win 11, python 3.8.11

qt06 commented 9 months ago

the piper-phonemize does not support python 3.11.

Fouladi-K commented 9 months ago

same problem here but only on Windows not Ubuntu.

TheBricktop commented 9 months ago

the piper-phonemize does not support python 3.11.

Which one does it support? Tried 3.10 for same effect.

BEjpg commented 6 months ago

Same on win 10 and python 3.9.13 tried 3.10 and 3.12, same thing

maxtheman commented 6 months ago

Same here on Mac with Python 3.11

nivaca commented 6 months ago

Same here on Fedora 40, Python 3.12.3.

numemac commented 6 months ago

Works on python 3.9

jtoy commented 6 months ago

It doesnt work for me on Python 3.8.10, but works on Python 3.10.12 it would be great to know which versions officially work.

BirgitPohl commented 5 months ago

It's end of Jun and I ran into it as well.

burritoOverflow commented 4 months ago

Doesn't seem to work (dep conflict on 3.12.x).

Installed 3.10.12 as per above with pyenv. This works.

username/dirpath/piper via 🐍 v3.10.12 (venv3.10.12)
❯ pip install piper-tts
Collecting piper-tts
  Downloading piper_tts-1.2.0-py3-none-any.whl (29 kB)
Collecting onnxruntime<2,>=1.11.0
  Downloading onnxruntime-1.18.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.8/6.8 MB 37.9 MB/s eta 0:00:00
Collecting piper-phonemize~=1.1.0
  Downloading piper_phonemize-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (25.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 25.0/25.0 MB 36.2 MB/s eta 0:00:00
Collecting packaging
  Downloading packaging-24.1-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.0/54.0 kB 26.9 MB/s eta 0:00:00
Collecting sympy
  Downloading sympy-1.12.1-py3-none-any.whl (5.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 44.5 MB/s eta 0:00:00
Collecting coloredlogs
  Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Collecting protobuf
  Downloading protobuf-5.27.2-cp38-abi3-manylinux2014_x86_64.whl (309 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 309.3/309.3 kB 58.4 MB/s eta 0:00:00
Collecting flatbuffers
  Downloading flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)
Collecting numpy<2.0,>=1.21.6
  Downloading numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 37.0 MB/s eta 0:00:00
Collecting humanfriendly>=9.1
  Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Collecting mpmath<1.4.0,>=1.1.0
  Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Installing collected packages: mpmath, flatbuffers, sympy, protobuf, piper-phonemize, packaging, numpy, humanfriendly, coloredlogs, onnxruntime, piper-tts
Successfully installed coloredlogs-15.0.1 flatbuffers-24.3.25 humanfriendly-10.0 mpmath-1.3.0 numpy-1.26.4 onnxruntime-1.18.1 packaging-24.1 piper-phonemize-1.1.0 piper-tts-1.2.0 protobuf-5.27.2 sympy-1.12.1

[notice] A new release of pip is available: 23.0.1 -> 24.1.1
[notice] To update, run: python3.10 -m pip install --upgrade pip

Seems the easiest workaround.