horald
Anmeldungsdatum: 6. Januar 2011
Beiträge: 240
Wohnort: Köln
|
Hallo zusammen, wer kann mir bei der Installation von deep speech (https://github.com/mozilla/DeepSpeech) helfen? Ich habe es erst mit pip versucht:
| $ pip -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
|
allerdings erhalte ich dann eine Fehlermeldung bei der pip Installation:
| $ pip install deepspeech
Collecting deepspeech
Could not find a version that satisfies the requirement deepspeech (from versions: )
No matching distribution found for deepspeech
You are using pip version 8.1.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
|
das Upgrade hat auch nicht funktioniert,
daher dachte ich, ich installiere mal python3-pip, da kommt aber immer folgende Meldung:
| $ sudo apt-get install python3-pip
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
»python3-pip« ist bereits die neuste Version (8.1.1-2ubuntu0.4).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 47 nicht aktualisiert.
|
Wenn ich dann aber versuche mir die Version anzuschauen, bekomme ich eine Fehlermeldung:
| $ pip3 -V
Die Anwendung »pip3« ist momentan nicht installiert. Sie können sie durch folgende Eingabe installieren:
sudo apt install python3-pip
|
Was mache ich falsch? Vielen Dank für Eure Unterstützung. Viele Grüße
Horst Moderiert von XM-Franz: Dieses Paketverwaltungsthema ist verschoben worden. Bitte beachte die als wichtig markierten Themen („Welche Themen gehören hier her und welche nicht?“)!
|
horald
(Themenstarter)
Anmeldungsdatum: 6. Januar 2011
Beiträge: 240
Wohnort: Köln
|
Hallo zusammen, den ersten Teil kann ich mir schon selber beantworten. Ich habe python3-pip einfach neu installiert:
| sudo apt purge python3-pip
sudo rm -rf '/usr/lib/python3/dist-packages/pip'
sudo apt install python3-pip
|
Upgrade geht leider immer noch nicht und auch die Installation von deepspeech schlägt fehl:
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | $ pip3 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ pip3 install deepspeech
Collecting deepspeech
Could not find a version that satisfies the requirement deepspeech (from versions: )
No matching distribution found for deepspeech
You are using pip version 8.1.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
|
|
horald
(Themenstarter)
Anmeldungsdatum: 6. Januar 2011
Beiträge: 240
Wohnort: Köln
|
Hallo zusammen, ich muss noch etwas ergänzen. Wenn ich jetzt versuche die Version abzufragen, kommt eine Fehlermeldung:
| $ pip3 -V
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
ImportError: cannot import name 'main'
|
Wieso funktioniert python3-pip nicht richtig?
|
Kellerkind_2009
Anmeldungsdatum: 26. November 2009
Beiträge: 19617
Wohnort: Schleswig-Holstein
|
Zeige mal apt show python3-pip
stephan@stephan-Desktop:~$ pip3 -V
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)
stephan@stephan-Desktop:~$ pip -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
stephan@stephan-Desktop:~$ https://progur.com/2018/02/how-to-use-mozilla-deepspeech-tutorial.html stephan@stephan-Desktop:~$ pip3 install deepspeech
Collecting deepspeech
Downloading https://files.pythonhosted.org/packages/6a/70/eb252a6eee9224876bb381c719df365d4a29d622c7163fef03961de8bb98/deepspeech-0.2.0-cp35-cp35m-manylinux1_x86_64.whl (7.8MB)
100% |████████████████████████████████| 7.8MB 189kB/s
Collecting numpy>=1.7.0 (from deepspeech)
Downloading https://files.pythonhosted.org/packages/0a/fa/afc1dc818589c9fd36a53f78999f2b5bd88bd5b167eb7d87fb56b565c185/numpy-1.15.1-cp35-cp35m-manylinux1_x86_64.whl (13.8MB)
100% |████████████████████████████████| 13.8MB 111kB/s
Installing collected packages: numpy, deepspeech
Successfully installed deepspeech-0.2.0 numpy-1.11.0
You are using pip version 8.1.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
stephan@stephan-Desktop:~$
|
horald
(Themenstarter)
Anmeldungsdatum: 6. Januar 2011
Beiträge: 240
Wohnort: Köln
|
Danke für die schnelle Antwort. Hier die Ausgabe: 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | $ apt show python3-pip
Package: python3-pip
Version: 8.1.1-2ubuntu0.4
Priority: optional
Section: universe/python
Source: python-pip
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 569 kB
Depends: ca-certificates, python-pip-whl (= 8.1.1-2ubuntu0.4), python3:any (>= 3.4~)
Recommends: build-essential, python3-dev (>= 3.2), python3-setuptools, python3-wheel
Homepage: https://pip.pypa.io/en/stable/
Download-Size: 109 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages
Description: alternative Python package installer - Python 3 version of the package
pip is a replacement for easy_install, and is intended to be an improved
Python package installer. It integrates with virtualenv, doesn't do partial
installs, can save package state for replaying, can install from non-egg
sources, and can install from version control repositories.
.
This is the Python 3 version of the package.
N: Es gibt 1 zusätzlichen Eintrag. Bitte verwenden Sie die Option »-a«, um ihn anzuzeigen.
|
Version 3:
| $ pip3 -V
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
ImportError: cannot import name 'main'
|
Version 2:
| ~$ pip -V
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
|
|
Kellerkind_2009
Anmeldungsdatum: 26. November 2009
Beiträge: 19617
Wohnort: Schleswig-Holstein
|
Ist die Paketquelle main frei geschaltet? grep -P '^[ \t]*[^#[ \t]+' /etc/apt/sources.list /etc/apt/sources.list.d/*.list Paketquelle freischalten falls nicht aktiv sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse' Danach sudo apt-get update && sudo apt-get dist-upgrade sudo apt install python-pip python-pip-whl python3-pip libpipeline1
Danach wieder Probieren.
|
horald
(Themenstarter)
Anmeldungsdatum: 6. Januar 2011
Beiträge: 240
Wohnort: Köln
|
Sorry, das war es leider nicht. Die repositories sind alle drin. Ich habe auch upgedated und upgegrated. Aber ich erhalte immer noch die ImportError-Meldung bei der Ausgabe der python-Version...
|
Kellerkind_2009
Anmeldungsdatum: 26. November 2009
Beiträge: 19617
Wohnort: Schleswig-Holstein
|
|
horald
(Themenstarter)
Anmeldungsdatum: 6. Januar 2011
Beiträge: 240
Wohnort: Köln
|
danke für den Link. Die Antwort unter 11 scheint bei mir funktioniert zu haben. Ich habe die Befehle hier nochmal reinkopiert: | python -m pip uninstall pip
apt remove python-pip
whereis pip
|
und
| wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py
sudo python3 /tmp/get-pip.py
pip install --user pipenv
pip3 install --user pipenv
echo "PATH=$HOME/.local/bin:$PATH" >> ~/.profile
source ~/.profile
whereis pip
|
Python3 scheint damit zu laufen. Zumindestens bekomme ich ein vernünftige Ausgabe der Version:
| $ pip -V
pip 18.0 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)
|
Allerdings die Installation von deepspeech funktioniert noch nicht:
| $ pip3 install deepspeech
Collecting deepspeech
Could not find a version that satisfies the requirement deepspeech (from versions: )
No matching distribution found for deepspeech
|
Was nun?
|
Kellerkind_2009
Anmeldungsdatum: 26. November 2009
Beiträge: 19617
Wohnort: Schleswig-Holstein
|
Deinstalliere es nochmal wie im Link vorgeschlagen.Die Ausgabe von dir $ pip -V
pip 18.0 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5) kann eigentlich nicht stimmen,bei mir nach pip install --upgrade pip pip -V
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7) Wie sieht bei dir pip list aus?
|
horald
(Themenstarter)
Anmeldungsdatum: 6. Januar 2011
Beiträge: 240
Wohnort: Köln
|
danke für den Hinweis. Aber mir geht es nicht darum noch Python2 zu installieren, sondern deepspeech ans Laufen zu bringen und auf der Github Seite von mozilla (https://github.com/mozilla/DeepSpeech) lautet die Installationszeilce: | Once everything is installed you can then use the deepspeech binary to do speech-to-text on short, approximately 5 second, audio files (currently only WAVE files with 16-bit, 16 kHz, mono are supported in the Python client):
pip3 install deepspeech
|
Mir ist aber nicht klar, was alles installiert sein soll? Deshalb meine eigentliche Frage: Wie installiere ich deepspeech? Meine pip list ist übrigens:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 | $ pip list
Package Version
---------------------------- ----------------------
apt-xapian-index 0.47
apturl 0.5.2
beautifulsoup4 4.4.1
blinker 1.3
borgbackup 1.0.11
catfish 1.4.2
certifi 2018.8.24
chardet 2.3.0
command-not-found 0.3
cryptography 1.2.3
defer 1.0.6
html5lib 0.999
httplib2 0.9.1
idna 2.0
keyring 7.3
language-selector 0.1
lightdm-gtk-greeter-settings 1.2.1
llfuse 0.41.1
lxml 3.5.0
menulibre 2.1.3
msgpack-python 0.4.6
mugshot 0.3.1
oauthlib 1.0.3
onboard 1.2.0
oneconf 0.3.9
pexpect 4.0.1
Pillow 3.1.2
pip 18.0
pipenv 2018.7.1
piston-mini-client 0.7.5
psutil 3.4.2
ptyprocess 0.5
pyasn1 0.1.9
pycrypto 2.6.1
pycups 1.9.73
pycurl 7.43.0
pygobject 3.20.0
PyJWT 1.3.0
python-apt 1.1.0b1+ubuntu0.16.4.2
python-dateutil 2.4.2
python-debian 0.1.27
python-systemd 231
pyxdg 0.25
reportlab 3.3.0
requests 2.9.1
SecretStorage 2.1.3
sessioninstaller 0.0.0
setuptools 40.4.3
six 1.10.0
software-center-aptd-plugins 0.0.0
ssh-import-id 5.5
ubuntu-drivers-common 0.0.0
ufw 0.35
unattended-upgrades 0.1
urllib3 1.13.1
virtualenv 16.0.0
virtualenv-clone 0.3.0
wheel 0.29.0
xkit 0.0.0
|
|
Kellerkind_2009
Anmeldungsdatum: 26. November 2009
Beiträge: 19617
Wohnort: Schleswig-Holstein
|
Ich zeige dir mal was stephan@stephan-Desktop:~$ /home/stephan/.local/bin/pip2 -V
pip 18.0 from /home/stephan/.local/lib/python2.7/site-packages/pip (python 2.7)
stephan@stephan-Desktop:~$ pip2 install deepspeech
Collecting deepspeech
Downloading https://files.pythonhosted.org/packages/c8/1b/8b796057685d1e7dbb71dc07a6aa43a4f88d99733dc9ab36ce6b2ff4db1e/deepspeech-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl (7.8MB)
100% |████████████████████████████████| 7.8MB 166kB/s
Collecting numpy>=1.7.0 (from deepspeech)
Downloading https://files.pythonhosted.org/packages/40/c5/f1ed15dd931d6667b40f1ab1c2fe1f26805fc2b6c3e25e45664f838de9d0/numpy-1.15.2-cp27-cp27mu-manylinux1_x86_64.whl (13.8MB)
100% |████████████████████████████████| 13.8MB 96kB/s
Installing collected packages: numpy, deepspeech
Successfully installed deepspeech-0.2.0 numpy-1.15.2
You are using pip version 8.1.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
stephan@stephan-Desktop:~$ pip install --upgrade pip
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
stephan@stephan-Desktop:~$ Die verwirrung bei pip ist komplett 😕 Da ich deepspeech nicht verwende kann ich dir nicht weiter Helfen. Wie gezeigt versuche noch bei dir pip2 install deepspeech Bei mir (gekürzt) stephan@stephan-Desktop:~$ pip3 list
deepspeech (0.2.0)
deepspeech-gpu (0.2.0)
stephan@stephan-Desktop:~$ pip2 list
deepspeech (0.2.0)
stephan@stephan-Desktop:~$ pip list
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
stephan@stephan-Desktop:~$
|