salut les programmeurs,
comment je peux installer le module espeak à partir terminal
hy j'utilise ubuntu anaconda 3 ,
merci avance.
-----
salut les programmeurs,
comment je peux installer le module espeak à partir terminal
hy j'utilise ubuntu anaconda 3 ,
merci avance.
En lisant la doc qui suggère par exemple :
ca donne quoi ?Code:pip install python-espeak
IL 'AFFICHE DES ERREURSS
pip install python-espeak
Collecting python-espeak
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnec tionPool(host='files.pythonhos ted.org', port=443): Read timed out. (read timeout=15)",)': /packages/59/5b/45437090dbd71ee9f586dc7f650c6e 8c4815bd8bff9b2923d4db5b9120ed/python-espeak-0.6.3.tar.gz
Downloading python-espeak-0.6.3.tar.gz (9.1 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: python-espeak
Building wheel for python-espeak (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/hamza/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'" ', '"'"'\n'"'"');f.close();exec(c ompile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-48yzw1cu
cwd: /tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/espeak
copying espeak/__init__.py -> build/lib.linux-x86_64-3.6/espeak
running build_ext
building 'espeak.core' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/espeak
gcc -pthread -B /home/hamza/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/hamza/anaconda3/include/python3.6m -c espeak/espeakmodulecore.cpp -o build/temp.linux-x86_64-3.6/espeak/espeakmodulecore.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
espeak/espeakmodulecore.cpp:23:30: fatal error: espeak/speak_lib.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for python-espeak
Running setup.py clean for python-espeak
Failed to build python-espeak
Installing collected packages: python-espeak
Running setup.py install for python-espeak ... error
ERROR: Command errored out with exit status 1:
command: /home/hamza/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'" ', '"'"'\n'"'"');f.close();exec(c ompile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8v87hopr/install-record.txt --single-version-externally-managed --compile --install-headers /home/hamza/anaconda3/include/python3.6m/python-espeak
cwd: /tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/espeak
copying espeak/__init__.py -> build/lib.linux-x86_64-3.6/espeak
running build_ext
building 'espeak.core' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/espeak
gcc -pthread -B /home/hamza/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/hamza/anaconda3/include/python3.6m -c espeak/espeakmodulecore.cpp -o build/temp.linux-x86_64-3.6/espeak/espeakmodulecore.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
espeak/espeakmodulecore.cpp:23:30: fatal error: espeak/speak_lib.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/hamza/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"'; __file__='"'"'/tmp/pip-install-e_74kmxs/python-espeak_860ff27c8796467fa8c3185 790623478/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'" ', '"'"'\n'"'"');f.close();exec(c ompile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8v87hopr/install-record.txt --single-version-externally-managed --compile --install-headers /home/hamza/anaconda3/include/python3.6m/python-espeak Check the logs for full command output.
j'ai testé aussi sous windows, et je rencontre le même type de souci. D'après les instructions, il faut aussi installer espeak et ces librairies, et que ces répertoires/fichiers soient déclarées dans le chemin des include du compilateur (gcc ici); une fois fait, ça devrait vouloir compiler.
J'ai abandonné car il me trouvait d'autres erreurs dans les fichiers sources et j'ai pas voulu creuser plus.
Merci,
J'essaye pour la n fois
Oui il faut d'abord installer espeak pour avoir la librairie et les headers :
https://stackoverflow.com/questions/...ders-in-ubuntu
Post annulé, grillé par pm42.
Dernière modification par Ernum ; 18/03/2022 à 17h03.
J'ai testé sur un Ubuntu 20.04 et ça a marché.