Erro ao instalar o IBM Watson TTS

1

Então eu estava instalando o IBM Watson TTS Eu usei os seguintes comandos:

pip3 install tts-watson

Eu até tentei o comando Sudo Permissions Like:

sudo pip3 install tts-watson

Mas continuo recebendo erros

ERRO COM PERMISSÕES DO SUDO:

The directory '/home/mdsaifali/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/mdsaifali/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting tts-watson Downloading tts_watson-1.0.0-py2.py3-none-any.whl Requirement already satisfied: Flask in /home/mdsaifali/.local/lib/python3.6/site-packages (from tts-watson) Requirement already satisfied: requests in /home/mdsaifali/.local/lib/python3.6/site-packages (from tts-watson) Collecting pyaudio>=0.2.9 (from tts-watson) Downloading PyAudio-0.2.11.tar.gz Requirement already satisfied: pyyaml>=3.08 in /home/mdsaifali/.local/lib/python3.6/site-packages (from tts-watson) Collecting bunch>=1.0.1 (from tts-watson) Collecting anyconfig (from tts-watson) Requirement already satisfied: Werkzeug>=0.7 in /home/mdsaifali/.local/lib/python3.6/site-packages (from Flask->tts-watson) Requirement already satisfied: itsdangerous>=0.21 in /home/mdsaifali/.local/lib/python3.6/site-packages (from Flask->tts-watson) Requirement already satisfied: click>=2.0 in /home/mdsaifali/.local/lib/python3.6/site-packages (from Flask->tts-watson) Requirement already satisfied: Jinja2>=2.4 in /home/mdsaifali/.local/lib/python3.6/site-packages (from Flask->tts-watson) Requirement already satisfied: idna<2.7,>=2.5 in /home/mdsaifali/.local/lib/python3.6/site-packages (from requests->tts-watson) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/mdsaifali/.local/lib/python3.6/site-packages (from requests->tts-watson) Requirement already satisfied: certifi>=2017.4.17 in /home/mdsaifali/.local/lib/python3.6/site-packages (from requests->tts-watson) Requirement already satisfied: urllib3<1.23,>=1.21.1 in /home/mdsaifali/.local/lib/python3.6/site-packages (from requests->tts-watson) Requirement already satisfied: MarkupSafe>=0.23 in /home/mdsaifali/.local/lib/python3.6/site-packages (from Jinja2>=2.4->Flask->tts-watson) Installing collected packages: pyaudio, bunch, anyconfig, tts-watson Running setup.py install for pyaudio ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9z8zer0x/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-i12mvsa5-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 copying src/pyaudio.py -> build/lib.linux-x86_64-3.6 running build_ext building '_portaudio' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.6/src/_portaudiomodule.o src/_portaudiomodule.c:29:10: fatal error: portaudio.h: No such file or directory #include "portaudio.h" ^~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools,

tokenize;file='/tmp/pip-build-9z8zer0x/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-i12mvsa5-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9z8zer0x/pyaudio/

SEM PERMISSÕES DO SUDO

Collecting tts-watson Using cached tts_watson-1.0.0-py2.py3-none-any.whl Collecting pyaudio>=0.2.9 (from tts-watson) Using cached PyAudio-0.2.11.tar.gz Collecting Flask (from tts-watson) Using cached Flask-0.12.2-py2.py3-none-any.whl Collecting pyyaml>=3.08 (from tts-watson) Collecting requests (from tts-watson) Using cached requests-2.18.4-py2.py3-none-any.whl Collecting bunch>=1.0.1 (from tts-watson) Collecting anyconfig (from tts-watson) Collecting click>=2.0 (from Flask->tts-watson) Using cached click-6.7-py2.py3-none-any.whl Collecting Jinja2>=2.4 (from Flask->tts-watson) Using cached Jinja2-2.10-py2.py3-none-any.whl Collecting itsdangerous>=0.21 (from Flask->tts-watson) Collecting Werkzeug>=0.7 (from Flask->tts-watson) Using cached Werkzeug-0.14.1-py2.py3-none-any.whl Collecting certifi>=2017.4.17 (from requests->tts-watson) Using cached certifi-2018.1.18-py2.py3-none-any.whl Collecting urllib3<1.23,>=1.21.1 (from requests->tts-watson) Using cached urllib3-1.22-py2.py3-none-any.whl Collecting chardet<3.1.0,>=3.0.2 (from requests->tts-watson) Using cached chardet-3.0.4-py2.py3-none-any.whl Collecting idna<2.7,>=2.5 (from requests->tts-watson) Using cached idna-2.6-py2.py3-none-any.whl Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->Flask->tts-watson) Building wheels for collected packages: pyaudio Running setup.py bdist_wheel for pyaudio ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-d582dp_1/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpsrav_lxqpip-wheel- --python-tag cp36: running bdist_wheel
running build running build_py creating build creating build/lib.linux-x86_64-3.6 copying src/pyaudio.py -> build/lib.linux-x86_64-3.6 running build_ext building '_portaudio' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.6/src/_portaudiomodule.o
src/_portaudiomodule.c:29:10: fatal error: portaudio.h: No such file or directory #include "portaudio.h" ^~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for pyaudio Running setup.py clean for pyaudio Failed to build pyaudio Installing collected packages: pyaudio, click, MarkupSafe, Jinja2, itsdangerous, Werkzeug, Flask, pyyaml, certifi, urllib3, chardet, idna, requests, bunch, anyconfig, tts-watson Running setup.py install for pyaudio ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-d582dp_1/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-_n9eo1d8-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 copying src/pyaudio.py -> build/lib.linux-x86_64-3.6 running build_ext building '_portaudio' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.6/src/_portaudiomodule.o src/_portaudiomodule.c:29:10: fatal error: portaudio.h: No such file or directory #include "portaudio.h" ^~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-d582dp_1/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n',

'\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-_n9eo1d8-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-d582dp_1/pyaudio/

EXISTE ALGUM MODO QUE POSSO RESOLVER ESTE

    
por koko piko 16.02.2018 / 16:08

0 respostas