‘pip install deepspeech’ doesn’t find a valid deepspeech on Linux Ubuntu 14.04.5 LTS. Kernel:Linux kanail 3.10.107-xenU-36-37a7b05-x86_64

Hi,
I’m running a similar problem @Justin_Gosses got but on linux and his workaround didn’t work for me. There is a wheel that should fit my environment in the pypi but even if I uploaded it on my server and tried to install it directly
pip install --verbose deepspeech-0.1.0-cp34-cp34m-manylinux1_x86_64.whl
I get the pip install deepspeech doesn’t find a valid deepspeech error.
Does someone have any clue? Thank you.
Here are some more details :

>cat /etc/*-release
        DISTRIB_ID=Ubuntu
        DISTRIB_RELEASE=14.04
        DISTRIB_CODENAME=trusty
        DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
        NAME="Ubuntu"
        VERSION="14.04.5 LTS, Trusty Tahr"
        ID=ubuntu
        ID_LIKE=debian
        PRETTY_NAME="Ubuntu 14.04.5 LTS"
        VERSION_ID="14.04"
        HOME_URL="http://www.ubuntu.com/"
        SUPPORT_URL="http://help.ubuntu.com/"
        BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

>lsb_release -a
        No LSB modules are available.
        Distributor ID: Ubuntu
        Description:    Ubuntu 14.04.5 LTS
        Release:        14.04
        Codename:       trusty

>uname -a
  `  Linux kanail 3.10.107-xenU-36-37a7b05-x86_64 #4 SMP Mon Jul 3 11:16:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux`


>pip install --verbose deepspeech-0.1.0-cp34-cp34m-manylinux1_x86_64.whl
        deepspeech-0.1.0-cp34-cp34m-manylinux1_x86_64.whl is not a supported wheel on this platform.
        Exception information:
        Traceback (most recent call last):
          File "/home/www-data/.local/lib/python3.4/site-packages/pip/basecommand.py", line 215, in main
            status = self.run(options, args)
          File "/home/www-data/.local/lib/python3.4/site-packages/pip/commands/install.py", line 312, in run
            wheel_cache
          File "/home/www-data/.local/lib/python3.4/site-packages/pip/basecommand.py", line 276, in populate_requirement_set
            wheel_cache=wheel_cache
          File "/home/www-data/.local/lib/python3.4/site-packages/pip/req/req_set.py", line 245, in add_requirement
            wheel.filename
        pip.exceptions.InstallationError: deepspeech-0.1.0-cp34-cp34m-manylinux1_x86_64.whl is not a supported wheel on this platform.

What is your pip3 --version ? And also, can you ensure that pip is actually your 3.4 system install? Usually it should rather be pip3 that matches your 3.4 system install, and pip would target 2.7.

On Ubuntu 14.04.5 I’d bet it’s just too old. If you have anything below 9 reported as version, then try to install it in your home directory: pip3 install --user pip, that should install a newer version in your home. Then make sure $HOME/.local/bin/ is in your $PATH and you should be able to use it.

This also applies if you target the 2.7 python install rather than 3.4.

sorry @lissyx I forgot to mention that and some other points :

All I described from the beginning concerns my virtual environment

>virtualenv --version
15.1.0

And I always work inside it. (/myProject_deepspeech/bin/source activate)

>pip3 --version
or
>pip --version
returns the same:
pip 9.0.1 from /home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages (python 3.4)

the $HOME/myProjectdeepspeech/myProject_deepspeech/bin
and
$HOME/.local/bin
are in my $PATH

>echo $PATH
/home/www-data/myProjectdeepspeech/myProject_deepspeech/bin:.:/home/www-data/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Inside my virtual environment I only have
pip 9.0.1 and python3.4
>python --version
Python 3.4.3

>python3 --version
Python 3.4.3

while outside my virtual environment
python2.7 and python3.4 do cohabit: I have both.
>python --version
Python 2.7.6

>python3 --version
Python 3.4.3

Outside and inside my virtual environment,
>pip3 --version
or
>pip --version
returns the same has above. (9.0.1)

I’m a bit confused with your sentence :

can you ensure that pip is actually your 3.4 system install? Usually it should rather be pip3 that matches your 3.4 system install, and pip would target 2.7.

Well, if pip is actually 3.4, then I’m confused as to why it would fail.

Please ensure that you are properly testing with your virtual env, your error message refers to /home/www-data/.local/lib/python3.4/, it should rather be /home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages.

Try maybe with pip install -vvv or pip install -v -v -v, I don’t remember which one. To get more informations?

Here is the full error message : (hum maybe I made a mistake last time and copy-past in the blog the logs after an attempt on the system, not in the virtual environment. Now I’m pretty sure it’s in the virtual environment I did it)

>pip install -v -v -v deepspeech

Collecting deepspeech
1 location(s) to search for versions of deepspeech:
 https://pypi.python.org/simple/deepspeech/
Getting page https://pypi.python.org/simple/deepspeech/
Looking up "https://pypi.python.org/simple/deepspeech/" in the cache
Current age based on date: 208
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 208
Analyzing links from page https://pypi.python.org/simple/deepspeech/
Skipping link https://pypi.python.org/packages/13/04/22c7aba1d8f3528860a3f7da93a8271da660917a16bf04ab3d69806ddbdb/deepspeech-0.0.2-cp34-cp34m-linux_armv7l.whl#md5=65b19ab5b231c51cd6ca7c53e9e53e15 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/1f/81/77c06c23d475dc2012ca94acd45864e162d2c2fc76096bbfc217e0e456af/deepspeech-0.0.2-cp36-cp36m-macosx_10_12_x86_64.whl#md5=9ef810b3e6d957843f2fb87550bada6c (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/1f/b5/1d06984995bea04713544f60ed8390891e975fc152b2132ef6b693073c63/deepspeech-0.0.3-cp27-cp27mu-manylinux1_x86_64.whl#md5=ffc47c657aebe4512705f7bafdceb5b6 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/22/cb/b10f9cb53287a35280c9d800c3c260066cae93ba5892896ef4f37f060b71/deepspeech-0.1.0-cp36-cp36m-macosx_10_12_x86_64.whl#md5=d41f047cf371e80447cebd6208e9260d (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/27/9a/3a247c1cfa6281167f13227f5a6cdc4d00a921a17e0b7b002f8b6f999d0a/deepspeech-0.0.2-cp35-cp35m-manylinux1_x86_64.whl#md5=886efda8083e82c2e7123fa614e2d3a9 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/2a/ce/d021efbe13a50644a23880dfb3bd9f3d7cd35f167fa3d263c7a1d5c499c9/deepspeech-0.0.2-cp27-cp27mu-linux_armv7l.whl#md5=cee65adf01b0bd070f1ece302678179e (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/2e/9b/2de973ba146c4355ab97e0ae9ce7def9b1e33cdba63d12227b912ba830e8/deepspeech-0.0.2-cp34-cp34m-manylinux1_x86_64.whl#md5=8cfa351e7bf85ac7cb04951a78742ec4 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/31/8f/a3ab9915970db9de99b47b353500523261958c0c3c26c03df840925f8eaa/deepspeech-0.0.3-cp34-cp34m-macosx_10_12_x86_64.whl#md5=62e4c4d412f5e3347002cd1faa55be2f (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/32/8b/4b59a8523313bcb4f11afcef3026d9f7d172bd9e731df6aaa921b9a2e434/deepspeech-0.0.3-cp34-cp34m-manylinux1_x86_64.whl#md5=a99b02b71176d108742194f0cae1146c (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/3d/cc/8dfd3dcc50e2d5cb5e202532a71e868a58a28b2728266ecb57384afc7384/deepspeech-0.1.0-cp27-cp27m-macosx_10_12_x86_64.whl#md5=099e33d6c9c3a66dd707dc687efc4da4 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/3d/f1/b17d9467f8e47a088bad1ae6caa3f709d01bf6d89b657c81e08af22d3acb/deepspeech-0.0.2-cp34-cp34m-macosx_10_12_x86_64.whl#md5=8515dc77144bf1260e0f3f926af97540 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/45/62/8102a9e189dc2a40a9521bf11e7f2a7b1648d17fe35ed7d19a2675f5b400/deepspeech-0.1.0-cp27-cp27mu-manylinux1_x86_64.whl#md5=2d65b15ccb15b4ba4e6178145bf4bea2 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/48/a5/81cfa039ed3c5505eaba079100143f93e74405eb78e5dfd1c45766b95a51/deepspeech-0.1.0-cp35-cp35m-macosx_10_12_x86_64.whl#md5=205862e11299265644681784c49e9047 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/4b/89/19a59908c3a6735363b243f14989ea59c433cab4b9bca1391e48decb66a7/deepspeech-0.0.3-cp36-cp36m-macosx_10_12_x86_64.whl#md5=24974a7aa0b3fd61261f70bfd0cd7fc0 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/4f/71/3fbcf9309730496777375a51d441d33ec9c6a036dd0f9da5c09848625801/deepspeech-0.0.2-cp27-cp27m-macosx_10_12_x86_64.whl#md5=fe7a973e1d24ddaf5936f34566539590 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/64/94/306dd45333318921d5c096d13d1b80d926e33970e45e8efe60cd3fde8b5a/deepspeech-0.0.3-cp35-cp35m-macosx_10_12_x86_64.whl#md5=46473eb1526fb2b399153b99cb45a72b (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/66/75/b10f120e4a6f9c045fb8c417af3f1e5a56fde163fdca3a75d87ec666c7bc/deepspeech-0.1.0-cp27-cp27mu-linux_armv7l.whl#md5=4312da2101abf486ec5c5c1a206281ce (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/6b/04/b93cac108650c8fb2dad4d381dbc1add8cc1992b27ae247f86b758bcd030/deepspeech-0.0.2-cp27-cp27mu-manylinux1_x86_64.whl#md5=7c6189c3c7e00b99b49a9a4774b56e63 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/71/d5/b0f9bb7ed96700c6dfc3ecb10a78218ead408a7d16b3732f27751fd3c564/deepspeech-0.1.0-cp36-cp36m-manylinux1_x86_64.whl#md5=ed3c856f7f6c642a042eb8c61db576c1 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/75/75/df3a916735895855805fa19c50c598b7a18956908bcbd04e7f9853ba3657/deepspeech-0.1.0-cp34-cp34m-linux_armv7l.whl#md5=6bdb6ab32f9ff0a9e5b8f812ddd1b95e (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/7e/c5/01074ebb71df0ada77f81bb0e8aacba869b95eed36c4446ad05564993e22/deepspeech-0.0.3-cp27-cp27m-macosx_10_12_x86_64.whl#md5=4acecf9c065dff4798a99bd3d4610917 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/7f/83/9a2a60e4d64b5e41f7a6fd19151051bd494b0869fd613e526886000de256/deepspeech-0.1.0-cp34-cp34m-macosx_10_12_x86_64.whl#md5=3c8db1eab29b100449b4be02483b4b37 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/87/d6/86c9b0498acc88063757625295ae9b9f71160cca6dc4017030861ecbe78c/deepspeech-0.0.3-cp34-cp34m-linux_armv7l.whl#md5=7012267204453a21a4cc63f8fdb17ec2 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/92/48/1d48eaa75081ef93fafa94660d263bbca6d1b15b67106ef809959169fb97/deepspeech-0.0.2-cp35-cp35m-macosx_10_12_x86_64.whl#md5=f1fcf1edc217b5dab7c7e70f9eded774 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/99/c7/9161c857cafe69aa3c090a2bfabe3167c746048bc05df4d979343cc6160a/deepspeech-0.0.3-cp36-cp36m-manylinux1_x86_64.whl#md5=31f86b1645c1afe39be4ac2cf46e59d4 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/9d/85/03978b5a103ea8726558c242b22a206bd4e39acf52d19e04898389215da4/deepspeech-0.0.2-cp36-cp36m-manylinux1_x86_64.whl#md5=4edd6fd02e2edffbc82075338fe4d731 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/a9/1d/33f626dd977ca8340d31aebc9f0f0acfe428e736f38bdba4fa1c0bdc15a9/deepspeech-0.1.0-cp35-cp35m-manylinux1_x86_64.whl#md5=7fab75bf33ef45e64077ecd201310cd7 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/bc/e5/ca25c7ed7212de79dd73f25f6441969adec1215e41909780c2199629b785/deepspeech-0.0.3-cp27-cp27mu-linux_armv7l.whl#md5=65a5ad830f90f192faeb1c85163a0ac6 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/cc/6b/9cb53f7e6d91da9a1dc3b1335216ee6ff11e66d04d4e90b130149a806ce8/deepspeech-0.1.0-cp34-cp34m-manylinux1_x86_64.whl#md5=c99ace927019cab7a5bfbd01c693ac62 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Skipping link https://pypi.python.org/packages/db/e6/62edd32cd40122743b4964b82efe40706704a799a826cb65f0215be8ad2e/deepspeech-0.0.3-cp35-cp35m-manylinux1_x86_64.whl#md5=ef199cd28a851a737e4b23ce79d48b02 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python
Could not find a version that satisfies the requirement deepspeech (from versions: )
Cleaning up...
No matching distribution found for deepspeech
Exception information:
Traceback (most recent call last):
File "/home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages/pip/commands/install.py", line 335, in run
wb.build(autobuilding=True)
File "/home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages/pip/req/req_set.py", line 554, in _prepare_file
require_hashes
File "/home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages/pip/req/req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/home/www-data/myprojectdeepspeech/myproject_deepspeech/lib/python3.4/site-packages/pip/index.py", line 514, in find_requirement
'No matching distribution found for %s' % req
pip.exceptions.DistributionNotFound: No matching distribution found for deepspeech

(I’ll try in another Ubuntu server on Xenial Xerus distribution and let you know…)

This is not using the proper URL for the wheel. And please use proper formatting when pasting output, it’s very hard to read otherwise.

Sorry, fixed that formatting problem by surrounding with < pre >< code >…</ pre ></ code >. (another thing I learned…). Trying now on another server and I’ll let you know.

It worked on my other server with a virtual environment that has python 2.7 :

(pythonproject) www-data@server03:~/pythonproject/bin$ pip install deepspeech
Collecting deepspeech
  Downloading deepspeech-0.1.0-cp27-cp27mu-manylinux1_x86_64.whl (17.1MB)
    100% |████████████████████████████████| 17.2MB 49kB/s
Collecting scipy==0.19.1 (from deepspeech)
  Downloading scipy-0.19.1-cp27-cp27mu-manylinux1_x86_64.whl (45.0MB)
    100% |████████████████████████████████| 45.0MB 11kB/s
Collecting numpy (from deepspeech)
  Downloading numpy-1.14.0-cp27-cp27mu-manylinux1_x86_64.whl (16.9MB)
    100% |████████████████████████████████| 16.9MB 59kB/s
Installing collected packages: numpy, scipy, deepspeech
Successfully installed deepspeech-0.1.0 numpy-1.14.0 scipy-0.19.1
(pythonproject) www-data@server03:~/pythonproject/bin$ python --version
Python 2.7.12
(pythonproject) www-data@server03:~/pythonproject/bin$

But back on my first server, even in a virtualenv with python 2.7 in it it still doesn’t work.
So I think it’s due to the ubuntu distribution version. I will upgrade it and we’ll see.

unfortunatelly I’ve upgraded my ubuntu distrubution and even if I try to install deepspeech with python 2.7 in this server I still have the errors:

 Skipping link https://pypi.python.org/packages/1f/b5/1d06984995bea04713544f60ed8390891e975fc152b2132ef6b693073c63/deepspeech-0.0.3-cp27-cp27mu-manylinux1_x86_64.whl#md5=ffc47c657aebe4512705f7bafdceb5b6 (from https://pypi.python.org/simple/deepspeech/); it is not compatible with this Python

You told me that the URL was incorrect for the wheel. But pip finds the url automatically. what URL am I suppose to force?
Thank you.

https://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu/artifacts/public/deepspeech-0.1.0-cp27-cp27mu-manylinux1_x86_64.whl

1 Like

Thank you lissyx but nope still KO. I will complettely change switch to another server because it works on another one but not this one.

Have you been able to get it working in the end? I really see no other good explanation that some leftover somewhere that gets picked up instead of what you expect.

No clue for the moment @lissyx leave it aside and will come back to this problem later. I will let you know.

Thanks for that, if it happened to you, it might happen to others, so it’d be good we can know what is going on for sure :slight_smile: