touchgadget / DeepSpeech

Install Mozilla DeepSpeech on a Raspberry Pi 4
90 stars 11 forks source link

Cannot install pip3 install deepspeech --upgrade #3

Open hackebike opened 3 years ago

hackebike commented 3 years ago

I tried the installation on Raspberry PI 4 OS 54 bit and got errors:

pip3 install deepspeech --upgrade Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting deepspeech Could not find a version that satisfies the requirement deepspeech (from versions: ) No matching distribution found for deepspeech

any ideas?

lastlap commented 3 years ago

Try sudo apt-get update sudo apt-get upgrade pip3 install deepspeech --no-cache-dir

TVI-BIZ commented 3 years ago

I try on Raspberry Pi Desktop: pip3 install deepspeech --upgrade No matching distribution found for deepspeech: Also try your reply - same error. Could you please help me?

bmswens commented 1 year ago

If you're encountering the No matching distribution found for deepspeech error, please ensure that you're using Python version 3.7.

Newer versions of Python are not support by deepspeech and that's why pip is unable to find a matching distro.

Note: This will install the deepspeech CLI regardless of Python version:

curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/native_client.rpi3.cpu.linux.tar.xz
tar -xf native_client.rpi3.cpu.linux.tar.xz
sudo apt install -y libsox-dev
./deepspeech --model deepspeech-0.9.3-models.tflite --scorer deepspeech-0.9.3-models.scorer --audio audio/2830-3980-0043.wav

You must add the ./ in front of deepspeech because it unpacks the executable to the local directory. This could then be resolved by adding that directory to your path or creating a softlink to it in /bin, or similar location.