🏗️ 安装报错留言区(Summary of Installation Errors)
iftaken opened this issue · comments
PaddleSpeech安装过程中遇到的问题都可以在这里留言,一些跟安装相关的问题也会在这里进行汇总
Problems encountered during the installation of paddlespeech can be left here, and some installation related problems will also be summarized here
往期安装问题汇总,安装遇到问题建议先参考下面的 issues:
Summary of previous installation problems. It's recommended to refer to the following issues first if there are problems in installation:
【Install for mac and windows, usage for CLI】安装PaddleSpeech相关问题讨论(Windows,mac),以及命令行使用问题
【Install for windows】安装PaddleSpeech相关问题讨论(Windows)
【paddleadudio related】
执行命令
pip install paddlespeech -i https://pypi.tuna.tsinghua.edu.cn/simple
时遇到错误
Collecting seqeval
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9d/2d/233c79d5b4e5ab1dbf111242299153f3caddddbb691219f363ad55ce783d/seqeval-1.2.2.tar.gz (43 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
WARNING: The repository located at mirrors.cloud.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.cloud.aliyuncs.com'.
ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
ERROR: No matching distribution found for setuptools_scm
/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead
warnings.warn(
/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Traceback (most recent call last):
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/root/miniconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp19h72t5e', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-7ygs5ns0/seqeval_aad802f54b744003817cbee187128e0b/setup.py", line 27, in <module>
setup(
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/__init__.py", line 86, in setup
_install_setup_requires(attrs)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py", line 861, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve
dist = best[req.key] = env.best_match(
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1062, in best_match
return self.obtain(req, installer)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1074, in obtain
return installer(requirement)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py", line 941, in fetch_build_egg
return fetch_build_egg(self, req)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/root/miniconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp19h72t5e', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Hello, also receiving the same issue as above with the same command.
pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple
Gives error of:
Building wheels for collected packages: paddlespeech
Building wheel for paddlespeech (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
__version__ = '0.0.0'
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\RALLA\paddlespeech\setup.py", line 331, in <module>
with version_info():
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "C:\Users\RALLA\paddlespeech\setup.py", line 254, in version_info
write_version_py()
File "C:\Users\RALLA\paddlespeech\setup.py", line 232, in write_version_py
COMMITID = check_output("git rev-parse HEAD")
File "C:\Users\RALLA\paddlespeech\setup.py", line 122, in check_output
out_bytes = sp.check_output(cmd.split())
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for paddlespeech
Running setup.py clean for paddlespeech
Failed to build paddlespeech
Installing collected packages: paddlespeech
Running setup.py install for paddlespeech ... error
error: subprocess-exited-with-error
× Running setup.py install for paddlespeech did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
__version__ = '0.0.0'
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\RALLA\paddlespeech\setup.py", line 331, in <module>
with version_info():
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "C:\Users\RALLA\paddlespeech\setup.py", line 254, in version_info
write_version_py()
File "C:\Users\RALLA\paddlespeech\setup.py", line 232, in write_version_py
COMMITID = check_output("git rev-parse HEAD")
File "C:\Users\RALLA\paddlespeech\setup.py", line 122, in check_output
out_bytes = sp.check_output(cmd.split())
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> paddlespeech
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Using Windows 11 and Visual Studio build tools are installed.
FileNotFoundError: [WinError 2] The system cannot find the file specified
@OfOdin maybe you should search for this line FileNotFoundError: [WinError 2] The system cannot find the file specified
ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
ERROR: No matching distribution found for setuptools_scm
@BrightXiaoHan maybe you should check this error
FileNotFoundError: [WinError 2] The system cannot find the file specified
@OfOdin maybe you should search for this line
FileNotFoundError: [WinError 2] The system cannot find the file specified
@yt605155624 I was missing the package Git. Did not install it after creating the environment. Install was successful.
/home/PaddleSpeech/demos/streaming_asr_server# paddlespeech_server start --config_file conf/punc_application.yaml &> punc.log &
/home/PaddleSpeech/demos/streaming_asr_server# tail -f punc.log
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
[2022-07-29 09:51:00,170] [ INFO] - start to init the engine
[2022-07-29 09:51:00,171] [ INFO] - text : python engine.
[2022-07-29 09:51:03,713] [ ERROR] - Failed to start server.
[2022-07-29 09:51:03,713] [ ERROR] - File is not a zip file
paddlecloud/paddlespeech镜像按照文档启动标点引擎报错,请问可能是什么原因?
/home/PaddleSpeech/demos/streaming_asr_server# paddlespeech_server start --config_file conf/punc_application.yaml &> punc.log & /home/PaddleSpeech/demos/streaming_asr_server# tail -f punc.log grep: warning: GREP_OPTIONS is deprecated; please use an alias or script [2022-07-29 09:51:00,170] [ INFO] - start to init the engine [2022-07-29 09:51:00,171] [ INFO] - text : python engine. [2022-07-29 09:51:03,713] [ ERROR] - Failed to start server. [2022-07-29 09:51:03,713] [ ERROR] - File is not a zip filepaddlecloud/paddlespeech镜像按照文档启动标点引擎报错,请问可能是什么原因?
下载nltk_data 并解压缩到的 ${HOME}
目录下问题解决
OS: ubuntu 22.04
Python Version: 3.10
$ pip install -i https://mirror.baidu.com/pypi/simple paddlespeech
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://mirror.baidu.com/pypi/simple
Collecting paddlespeech
Using cached https://mirror.baidu.com/pypi/packages/02/d3/116fbfd3ac7bd4569770404240cd0709d5a4c3fa797355b699a95cd20532/paddlespeech-1.1.3-py3-none-any.whl (1.3 MB)
Collecting uvicorn
Using cached https://mirror.baidu.com/pypi/packages/64/82/3fdff66fca901b30e42c88e0c37ada35e181074e0c4fd8d7d7525107329d/uvicorn-0.18.3-py3-none-any.whl (57 kB)
Collecting opencc
Using cached https://mirror.baidu.com/pypi/packages/b2/d5/75fd463a5d4196e575c1147d373b354dbdd858792135e19b414576181a1b/OpenCC-1.1.4-cp310-cp310-manylinux1_x86_64.whl (770 kB)
Collecting g2pM
Using cached https://mirror.baidu.com/pypi/packages/af/21/dc5b497f09a94a9605e0b8a94ad0e01ae73a2b65109bf5bd325b0814b6a8/g2pM-0.1.2.5-py3-none-any.whl (1.7 MB)
Collecting pattern-singleton
Using cached https://mirror.baidu.com/pypi/packages/5c/52/1531bd435ddba56d996a5c706184ef93eecfc6318ef0a069a9ecf5ef1b73/pattern_singleton-1.2.0.tar.gz (10 kB)
Preparing metadata (setup.py) ... done
Collecting timer
Downloading https://mirror.baidu.com/pypi/packages/3c/c2/9b06bd96cc1041f3aa0bb07acdbfddbefd8c0ca300fc9ad696afb77140d1/timer-0.2.2-py3-none-any.whl (7.8 kB)
Collecting sacrebleu
Using cached https://mirror.baidu.com/pypi/packages/6c/c4/fe3092828e1a6c4926823bbae31d9e671c1d7453171feda0b124f476126f/sacrebleu-2.2.1-py3-none-any.whl (116 kB)
Collecting kaldiio
Downloading https://mirror.baidu.com/pypi/packages/5b/64/a615d1f8b31ee3b3eee9b1e3e17b9961757c0c1fb7df5b7dbd9baef004a9/kaldiio-2.17.2.tar.gz (24 kB)
Preparing metadata (setup.py) ... done
Collecting pathos==0.2.8
Downloading https://mirror.baidu.com/pypi/packages/23/6b/7ffe02bdb5f5cf4b2290cc906b415dde7c886dbb11928dda40d39e6654dd/pathos-0.2.8-py2.py3-none-any.whl (81 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.7/81.7 KB 3.6 MB/s eta 0:00:00
Collecting soundfile~=0.10
Using cached https://mirror.baidu.com/pypi/packages/eb/f2/3cbbbf3b96fb9fa91582c438b574cff3f45b29c772f94c400e2c99ef5db9/SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB)
Collecting yacs~=0.1.8
Using cached https://mirror.baidu.com/pypi/packages/38/4f/fe9a4d472aa867878ce3bb7efb16654c5d63672b86dc0e6e953a67018433/yacs-0.1.8-py3-none-any.whl (14 kB)
Collecting fastapi
Using cached https://mirror.baidu.com/pypi/packages/f8/f6/5334a17a8acb95b2b71825db6c8c3d2b984d1d0c31266fcda02480ab62ab/fastapi-0.85.0-py3-none-any.whl (55 kB)
Collecting pandas
Using cached https://mirror.baidu.com/pypi/packages/a2/bb/33c637f9d284a8b314aee0a6fc2c2ef243d9145e9480f910f4eca54e6887/pandas-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB)
Collecting paddlenlp
Using cached https://mirror.baidu.com/pypi/packages/8d/1e/908644ee3e6232166e79386950c9d3f62105c35fbca1ba79a50b8eeb7fbb/paddlenlp-2.4.0-py3-none-any.whl (1.8 MB)
Collecting paddlespeech-feat
Downloading https://mirror.baidu.com/pypi/packages/3e/1f/5bda16fab78b8caa19a301bcb2ee22cf9d72de6e507b5d22362254ae4882/paddlespeech_feat-0.1.0-py3-none-any.whl (12 kB)
Collecting jieba
Using cached https://mirror.baidu.com/pypi/packages/c6/cb/18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2/jieba-0.42.1.tar.gz (19.2 MB)
Preparing metadata (setup.py) ... done
Collecting g2p-en
Using cached https://mirror.baidu.com/pypi/packages/d7/d9/b77dc634a7a0c0c97716ba97dd0a28cbfa6267c96f359c4f27ed71cbd284/g2p_en-2.1.0-py3-none-any.whl (3.1 MB)
Collecting zhon
Downloading https://mirror.baidu.com/pypi/packages/9f/b0/c56c6079ad47c35a2341440818b6620de8c46a265ed690a51b1a4e5591bc/zhon-1.1.5.tar.gz (99 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.8/99.8 KB 6.6 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting loguru
Using cached https://mirror.baidu.com/pypi/packages/fe/21/e1d1da2586865a159fc73b611f36bdd50b6c4043cb6132d3d5e972988028/loguru-0.6.0-py3-none-any.whl (58 kB)
Requirement already satisfied: protobuf<=3.20.0,>=3.1.0 in ./.local/lib/python3.10/site-packages (from paddlespeech) (3.20.0)
Collecting scipy
Downloading https://mirror.baidu.com/pypi/packages/c2/89/37b6e11bfe24e96a375fc39e6ffb6c2f27ff795cfb735ae83130e0bf78b5/scipy-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.9/43.9 MB 9.1 MB/s eta 0:00:00
Collecting sentencepiece~=0.1.96
Downloading https://mirror.baidu.com/pypi/packages/7f/21/7a88f09026e1a69358b845d6b5deb36a2a54457ba7317f8f1047d9bbb643/sentencepiece-0.1.96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 7.1 MB/s eta 0:00:00
Collecting braceexpand
Downloading https://mirror.baidu.com/pypi/packages/fa/93/e8c04e80e82391a6e51f218ca49720f64236bc824e92152a2633b74cf7ab/braceexpand-0.1.7-py2.py3-none-any.whl (5.9 kB)
Requirement already satisfied: prettytable in /usr/lib/python3/dist-packages (from paddlespeech) (2.5.0)
Collecting pyworld==0.2.12
Downloading https://mirror.baidu.com/pypi/packages/af/88/003eef396c966cf00088900167831946b80b8e7650843905cb9590c2d9ca/pyworld-0.2.12.tar.gz (222 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 222.7/222.7 KB 31.2 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting webrtcvad
Downloading https://mirror.baidu.com/pypi/packages/89/34/e2de2d97f3288512b9ea56f92e7452f8207eb5a0096500badf9dfd48f5e6/webrtcvad-2.0.10.tar.gz (66 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.2/66.2 KB 5.9 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting paddlespeech
Using cached https://mirror.baidu.com/pypi/packages/b3/92/74b38bf5ed150dda9fc152eab33226e1bf112b611eff56014e465126a358/paddlespeech-1.1.2-py3-none-any.whl (1.3 MB)
Using cached https://mirror.baidu.com/pypi/packages/b1/1f/3277ab3f7281396a775c47644961e9c97947451ebabdd33abc4f258e22ed/paddlespeech-1.1.1-py3-none-any.whl (1.3 MB)
Using cached https://mirror.baidu.com/pypi/packages/df/28/2826694a15c84742b32c331652c1dd671c3bfc953ee17cab0514cabdd0b5/paddlespeech-1.0.1-py3-none-any.whl (1.1 MB)
Collecting paddleaudio
Using cached https://mirror.baidu.com/pypi/packages/58/27/451d2b9fadba04b7b939bb2d022d02dd373f6ceac0f79eb6d278aca7426d/paddleaudio-1.0.2-py3-none-any.whl (119 kB)
Collecting editdistance
Using cached https://mirror.baidu.com/pypi/packages/b5/de/6157e01f8a5bc672d59d4183a3095d0f998ca387636881907edfa32f617b/editdistance-0.6.0.tar.gz (29 kB)
Preparing metadata (setup.py) ... done
Collecting resampy==0.2.2
Downloading https://mirror.baidu.com/pypi/packages/79/75/e22272b9c2185fc8f3af6ce37229708b45e8b855fd4bc38b4d6b040fff65/resampy-0.2.2.tar.gz (323 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 323.4/323.4 KB 28.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting pyworld
Using cached https://mirror.baidu.com/pypi/packages/88/0b/9f8ceb7548bbb1294729b291044b8e72754db21dbc672acbd5eec6ed740b/pyworld-0.3.0.tar.gz (212 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [310 lines of output]
Looking in indexes: https://mirror.baidu.com/pypi/simple
Collecting wheel
Using cached https://mirror.baidu.com/pypi/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting setuptools
Using cached https://mirror.baidu.com/pypi/packages/d9/5f/2daccd14278b6b780ae6799f85998377c06019354982391245f4b58a927d/setuptools-65.3.0-py3-none-any.whl (1.2 MB)
Collecting cython>=0.24.0
Using cached https://mirror.baidu.com/pypi/packages/9b/ed/01f76a873ff759ae4ef91c43e906ca7580ef38558d74987620bb6540948d/Cython-0.29.30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
Collecting numpy<v1.20.0
Using cached https://mirror.baidu.com/pypi/packages/51/60/3f0fe5b7675a461d96b9d6729beecd3532565743278a9c3fe6dd09697fa7/numpy-1.19.5.zip (7.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [280 lines of output]
setup.py:67: RuntimeWarning: NumPy 1.19.5 may not yet support Python 3.10.
warnings.warn(
Running from numpy source directory.
setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
run_build = parse_setuppy_commands()
/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/tools/cythonize.py:67: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.version import LooseVersion
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_pcg64.pyx
Processing numpy/random/_mt19937.pyx
Processing numpy/random/mtrand.pyx
Processing numpy/random/_sfc64.pyx
Processing numpy/random/_bounded_integers.pyx.in
Processing numpy/random/bit_generator.pyx
Processing numpy/random/_philox.pyx
Processing numpy/random/_generator.pyx
Processing numpy/random/_common.pyx
Cythonizing sources
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
blis_info:
libraries blis not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
blas_info:
libraries blas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
if self._calc_info(blas):
blas_src_info:
NOT AVAILABLE
/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
if self._calc_info(blas):
NOT AVAILABLE
non-existing path in 'numpy/distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_clapack_info:
libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
flame_info:
libraries flame not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
libraries tatlas,tatlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
libraries satlas,satlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
libraries f77blas,cblas,atlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1748: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
return getattr(self, '_calc_info_{}'.format(name))()
lapack_src_info:
NOT AVAILABLE
/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1748: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
return getattr(self, '_calc_info_{}'.format(name))()
NOT AVAILABLE
numpy_linalg_lapack_lite:
FOUND:
language = c
define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running dist_info
running build_src
build_src
building py_modules sources
creating build
creating build/src.linux-x86_64-3.10
creating build/src.linux-x86_64-3.10/numpy
creating build/src.linux-x86_64-3.10/numpy/distutils
building library "npymath" sources
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable lf95
Could not locate executable pgfortran
Could not locate executable nvfortran
Could not locate executable f90
Could not locate executable f77
Could not locate executable fort
Could not locate executable efort
Could not locate executable efc
Could not locate executable g77
Could not locate executable g95
Could not locate executable pathf95
Could not locate executable nagfor
don't know how to compile Fortran code on platform 'posix'
creating build/src.linux-x86_64-3.10/numpy/core
creating build/src.linux-x86_64-3.10/numpy/core/src
creating build/src.linux-x86_64-3.10/numpy/core/src/npymath
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h
adding 'build/src.linux-x86_64-3.10/numpy/core/src/npymath' to include_dirs.
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/ieee754.c
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_complex.c
None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h']
building library "npysort" sources
creating build/src.linux-x86_64-3.10/numpy/core/src/common
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h
adding 'build/src.linux-x86_64-3.10/numpy/core/src/common' to include_dirs.
creating build/src.linux-x86_64-3.10/numpy/core/src/npysort
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/quicksort.c
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/mergesort.c
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/timsort.c
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/heapsort.c
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/radixsort.c
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_partition.h
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/selection.c
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_binsearch.h
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/binsearch.c
None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_partition.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_binsearch.h']
building library "npyrandom" sources
building extension "numpy.core._multiarray_tests" sources
creating build/src.linux-x86_64-3.10/numpy/core/src/multiarray
conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/multiarray/_multiarray_tests.c
building extension "numpy.core._multiarray_umath" sources
Traceback (most recent call last):
File "/tmp/tmpmgpc7t6c_in_process.py", line 363, in <module>
main()
File "/tmp/tmpmgpc7t6c_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/tmp/tmpmgpc7t6c_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel
self.run_setup()
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 508, in <module>
setup_package()
File "setup.py", line 500, in setup_package
setup(**metadata)
File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/dist_info.py", line 31, in run
egg_info.run()
File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/egg_info.py", line 24, in run
self.run_command("build_src")
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 161, in build_sources
self.build_extension_sources(ext)
File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 318, in build_extension_sources
sources = self.generate_sources(sources, ext)
File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 436, in generate_config_h
moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
File "numpy/core/setup.py", line 47, in check_types
out = check_types(*a, **kw)
File "numpy/core/setup.py", line 292, in check_types
raise SystemError(
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
apt update -y
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
make: *** [apt.done] Error 1
mac use apt??????? pyuthon lib need jkava???
OS: ubuntu 22.04 Python Version: 3.10
$ pip install -i https://mirror.baidu.com/pypi/simple paddlespeech Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://mirror.baidu.com/pypi/simple Collecting paddlespeech Using cached https://mirror.baidu.com/pypi/packages/02/d3/116fbfd3ac7bd4569770404240cd0709d5a4c3fa797355b699a95cd20532/paddlespeech-1.1.3-py3-none-any.whl (1.3 MB) Collecting uvicorn Using cached https://mirror.baidu.com/pypi/packages/64/82/3fdff66fca901b30e42c88e0c37ada35e181074e0c4fd8d7d7525107329d/uvicorn-0.18.3-py3-none-any.whl (57 kB) Collecting opencc Using cached https://mirror.baidu.com/pypi/packages/b2/d5/75fd463a5d4196e575c1147d373b354dbdd858792135e19b414576181a1b/OpenCC-1.1.4-cp310-cp310-manylinux1_x86_64.whl (770 kB) Collecting g2pM Using cached https://mirror.baidu.com/pypi/packages/af/21/dc5b497f09a94a9605e0b8a94ad0e01ae73a2b65109bf5bd325b0814b6a8/g2pM-0.1.2.5-py3-none-any.whl (1.7 MB) Collecting pattern-singleton Using cached https://mirror.baidu.com/pypi/packages/5c/52/1531bd435ddba56d996a5c706184ef93eecfc6318ef0a069a9ecf5ef1b73/pattern_singleton-1.2.0.tar.gz (10 kB) Preparing metadata (setup.py) ... done Collecting timer Downloading https://mirror.baidu.com/pypi/packages/3c/c2/9b06bd96cc1041f3aa0bb07acdbfddbefd8c0ca300fc9ad696afb77140d1/timer-0.2.2-py3-none-any.whl (7.8 kB) Collecting sacrebleu Using cached https://mirror.baidu.com/pypi/packages/6c/c4/fe3092828e1a6c4926823bbae31d9e671c1d7453171feda0b124f476126f/sacrebleu-2.2.1-py3-none-any.whl (116 kB) Collecting kaldiio Downloading https://mirror.baidu.com/pypi/packages/5b/64/a615d1f8b31ee3b3eee9b1e3e17b9961757c0c1fb7df5b7dbd9baef004a9/kaldiio-2.17.2.tar.gz (24 kB) Preparing metadata (setup.py) ... done Collecting pathos==0.2.8 Downloading https://mirror.baidu.com/pypi/packages/23/6b/7ffe02bdb5f5cf4b2290cc906b415dde7c886dbb11928dda40d39e6654dd/pathos-0.2.8-py2.py3-none-any.whl (81 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.7/81.7 KB 3.6 MB/s eta 0:00:00 Collecting soundfile~=0.10 Using cached https://mirror.baidu.com/pypi/packages/eb/f2/3cbbbf3b96fb9fa91582c438b574cff3f45b29c772f94c400e2c99ef5db9/SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB) Collecting yacs~=0.1.8 Using cached https://mirror.baidu.com/pypi/packages/38/4f/fe9a4d472aa867878ce3bb7efb16654c5d63672b86dc0e6e953a67018433/yacs-0.1.8-py3-none-any.whl (14 kB) Collecting fastapi Using cached https://mirror.baidu.com/pypi/packages/f8/f6/5334a17a8acb95b2b71825db6c8c3d2b984d1d0c31266fcda02480ab62ab/fastapi-0.85.0-py3-none-any.whl (55 kB) Collecting pandas Using cached https://mirror.baidu.com/pypi/packages/a2/bb/33c637f9d284a8b314aee0a6fc2c2ef243d9145e9480f910f4eca54e6887/pandas-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB) Collecting paddlenlp Using cached https://mirror.baidu.com/pypi/packages/8d/1e/908644ee3e6232166e79386950c9d3f62105c35fbca1ba79a50b8eeb7fbb/paddlenlp-2.4.0-py3-none-any.whl (1.8 MB) Collecting paddlespeech-feat Downloading https://mirror.baidu.com/pypi/packages/3e/1f/5bda16fab78b8caa19a301bcb2ee22cf9d72de6e507b5d22362254ae4882/paddlespeech_feat-0.1.0-py3-none-any.whl (12 kB) Collecting jieba Using cached https://mirror.baidu.com/pypi/packages/c6/cb/18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2/jieba-0.42.1.tar.gz (19.2 MB) Preparing metadata (setup.py) ... done Collecting g2p-en Using cached https://mirror.baidu.com/pypi/packages/d7/d9/b77dc634a7a0c0c97716ba97dd0a28cbfa6267c96f359c4f27ed71cbd284/g2p_en-2.1.0-py3-none-any.whl (3.1 MB) Collecting zhon Downloading https://mirror.baidu.com/pypi/packages/9f/b0/c56c6079ad47c35a2341440818b6620de8c46a265ed690a51b1a4e5591bc/zhon-1.1.5.tar.gz (99 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.8/99.8 KB 6.6 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting loguru Using cached https://mirror.baidu.com/pypi/packages/fe/21/e1d1da2586865a159fc73b611f36bdd50b6c4043cb6132d3d5e972988028/loguru-0.6.0-py3-none-any.whl (58 kB) Requirement already satisfied: protobuf<=3.20.0,>=3.1.0 in ./.local/lib/python3.10/site-packages (from paddlespeech) (3.20.0) Collecting scipy Downloading https://mirror.baidu.com/pypi/packages/c2/89/37b6e11bfe24e96a375fc39e6ffb6c2f27ff795cfb735ae83130e0bf78b5/scipy-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.9/43.9 MB 9.1 MB/s eta 0:00:00 Collecting sentencepiece~=0.1.96 Downloading https://mirror.baidu.com/pypi/packages/7f/21/7a88f09026e1a69358b845d6b5deb36a2a54457ba7317f8f1047d9bbb643/sentencepiece-0.1.96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 7.1 MB/s eta 0:00:00 Collecting braceexpand Downloading https://mirror.baidu.com/pypi/packages/fa/93/e8c04e80e82391a6e51f218ca49720f64236bc824e92152a2633b74cf7ab/braceexpand-0.1.7-py2.py3-none-any.whl (5.9 kB) Requirement already satisfied: prettytable in /usr/lib/python3/dist-packages (from paddlespeech) (2.5.0) Collecting pyworld==0.2.12 Downloading https://mirror.baidu.com/pypi/packages/af/88/003eef396c966cf00088900167831946b80b8e7650843905cb9590c2d9ca/pyworld-0.2.12.tar.gz (222 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 222.7/222.7 KB 31.2 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting webrtcvad Downloading https://mirror.baidu.com/pypi/packages/89/34/e2de2d97f3288512b9ea56f92e7452f8207eb5a0096500badf9dfd48f5e6/webrtcvad-2.0.10.tar.gz (66 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.2/66.2 KB 5.9 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting paddlespeech Using cached https://mirror.baidu.com/pypi/packages/b3/92/74b38bf5ed150dda9fc152eab33226e1bf112b611eff56014e465126a358/paddlespeech-1.1.2-py3-none-any.whl (1.3 MB) Using cached https://mirror.baidu.com/pypi/packages/b1/1f/3277ab3f7281396a775c47644961e9c97947451ebabdd33abc4f258e22ed/paddlespeech-1.1.1-py3-none-any.whl (1.3 MB) Using cached https://mirror.baidu.com/pypi/packages/df/28/2826694a15c84742b32c331652c1dd671c3bfc953ee17cab0514cabdd0b5/paddlespeech-1.0.1-py3-none-any.whl (1.1 MB) Collecting paddleaudio Using cached https://mirror.baidu.com/pypi/packages/58/27/451d2b9fadba04b7b939bb2d022d02dd373f6ceac0f79eb6d278aca7426d/paddleaudio-1.0.2-py3-none-any.whl (119 kB) Collecting editdistance Using cached https://mirror.baidu.com/pypi/packages/b5/de/6157e01f8a5bc672d59d4183a3095d0f998ca387636881907edfa32f617b/editdistance-0.6.0.tar.gz (29 kB) Preparing metadata (setup.py) ... done Collecting resampy==0.2.2 Downloading https://mirror.baidu.com/pypi/packages/79/75/e22272b9c2185fc8f3af6ce37229708b45e8b855fd4bc38b4d6b040fff65/resampy-0.2.2.tar.gz (323 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 323.4/323.4 KB 28.3 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting pyworld Using cached https://mirror.baidu.com/pypi/packages/88/0b/9f8ceb7548bbb1294729b291044b8e72754db21dbc672acbd5eec6ed740b/pyworld-0.3.0.tar.gz (212 kB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [310 lines of output] Looking in indexes: https://mirror.baidu.com/pypi/simple Collecting wheel Using cached https://mirror.baidu.com/pypi/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting setuptools Using cached https://mirror.baidu.com/pypi/packages/d9/5f/2daccd14278b6b780ae6799f85998377c06019354982391245f4b58a927d/setuptools-65.3.0-py3-none-any.whl (1.2 MB) Collecting cython>=0.24.0 Using cached https://mirror.baidu.com/pypi/packages/9b/ed/01f76a873ff759ae4ef91c43e906ca7580ef38558d74987620bb6540948d/Cython-0.29.30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB) Collecting numpy<v1.20.0 Using cached https://mirror.baidu.com/pypi/packages/51/60/3f0fe5b7675a461d96b9d6729beecd3532565743278a9c3fe6dd09697fa7/numpy-1.19.5.zip (7.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [280 lines of output] setup.py:67: RuntimeWarning: NumPy 1.19.5 may not yet support Python 3.10. warnings.warn( Running from numpy source directory. setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates run_build = parse_setuppy_commands() /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/tools/cythonize.py:67: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.version import LooseVersion Processing numpy/random/_bounded_integers.pxd.in Processing numpy/random/_pcg64.pyx Processing numpy/random/_mt19937.pyx Processing numpy/random/mtrand.pyx Processing numpy/random/_sfc64.pyx Processing numpy/random/_bounded_integers.pyx.in Processing numpy/random/bit_generator.pyx Processing numpy/random/_philox.pyx Processing numpy/random/_generator.pyx Processing numpy/random/_common.pyx Cythonizing sources blas_opt_info: blas_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE blis_info: libraries blis not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE openblas_info: libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS libraries tatlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_3_10_blas_info: libraries satlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE accelerate_info: NOT AVAILABLE /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning: Optimized (vendor) Blas libraries are not found. Falls back to netlib Blas library which has worse performance. A better performance should be easily gained by switching Blas library. if self._calc_info(blas): blas_info: libraries blas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. if self._calc_info(blas): blas_src_info: NOT AVAILABLE /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning: Blas (http://www.netlib.org/blas/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [blas_src]) or by setting the BLAS_SRC environment variable. if self._calc_info(blas): NOT AVAILABLE non-existing path in 'numpy/distutils': 'site.cfg' lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE openblas_lapack_info: libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE openblas_clapack_info: libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE flame_info: libraries flame not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /usr/local/lib libraries tatlas,tatlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib64 libraries tatlas,tatlas not found in /usr/lib64 libraries lapack_atlas not found in /usr/lib libraries tatlas,tatlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> NOT AVAILABLE atlas_3_10_info: libraries lapack_atlas not found in /usr/local/lib libraries satlas,satlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib64 libraries satlas,satlas not found in /usr/lib64 libraries lapack_atlas not found in /usr/lib libraries satlas,satlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu <class 'numpy.distutils.system_info.atlas_3_10_info'> NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib64 libraries ptf77blas,ptcblas,atlas not found in /usr/lib64 libraries lapack_atlas not found in /usr/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu <class 'numpy.distutils.system_info.atlas_threads_info'> NOT AVAILABLE atlas_info: libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib64 libraries f77blas,cblas,atlas not found in /usr/lib64 libraries lapack_atlas not found in /usr/lib libraries f77blas,cblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu <class 'numpy.distutils.system_info.atlas_info'> NOT AVAILABLE lapack_info: libraries lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1748: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. return getattr(self, '_calc_info_{}'.format(name))() lapack_src_info: NOT AVAILABLE /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1748: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. return getattr(self, '_calc_info_{}'.format(name))() NOT AVAILABLE numpy_linalg_lapack_lite: FOUND: language = c define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')] /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running dist_info running build_src build_src building py_modules sources creating build creating build/src.linux-x86_64-3.10 creating build/src.linux-x86_64-3.10/numpy creating build/src.linux-x86_64-3.10/numpy/distutils building library "npymath" sources Could not locate executable gfortran Could not locate executable f95 Could not locate executable ifort Could not locate executable ifc Could not locate executable lf95 Could not locate executable pgfortran Could not locate executable nvfortran Could not locate executable f90 Could not locate executable f77 Could not locate executable fort Could not locate executable efort Could not locate executable efc Could not locate executable g77 Could not locate executable g95 Could not locate executable pathf95 Could not locate executable nagfor don't know how to compile Fortran code on platform 'posix' creating build/src.linux-x86_64-3.10/numpy/core creating build/src.linux-x86_64-3.10/numpy/core/src creating build/src.linux-x86_64-3.10/numpy/core/src/npymath conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h adding 'build/src.linux-x86_64-3.10/numpy/core/src/npymath' to include_dirs. conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/ieee754.c conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_complex.c None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h'] building library "npysort" sources creating build/src.linux-x86_64-3.10/numpy/core/src/common conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h adding 'build/src.linux-x86_64-3.10/numpy/core/src/common' to include_dirs. creating build/src.linux-x86_64-3.10/numpy/core/src/npysort conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/quicksort.c conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/mergesort.c conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/timsort.c conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/heapsort.c conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/radixsort.c conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_partition.h conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/selection.c conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_binsearch.h conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/binsearch.c None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_partition.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_binsearch.h'] building library "npyrandom" sources building extension "numpy.core._multiarray_tests" sources creating build/src.linux-x86_64-3.10/numpy/core/src/multiarray conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/multiarray/_multiarray_tests.c building extension "numpy.core._multiarray_umath" sources Traceback (most recent call last): File "/tmp/tmpmgpc7t6c_in_process.py", line 363, in <module> main() File "/tmp/tmpmgpc7t6c_in_process.py", line 345, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/tmp/tmpmgpc7t6c_in_process.py", line 164, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel self.run_setup() File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 267, in run_setup super(_BuildMetaLegacyBackend, File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 508, in <module> setup_package() File "setup.py", line 500, in setup_package setup(**metadata) File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.10/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3/dist-packages/setuptools/command/dist_info.py", line 31, in run egg_info.run() File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/egg_info.py", line 24, in run self.run_command("build_src") File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 144, in run self.build_sources() File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 161, in build_sources self.build_extension_sources(ext) File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 318, in build_extension_sources sources = self.generate_sources(sources, ext) File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 378, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 436, in generate_config_h moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir) File "numpy/core/setup.py", line 47, in check_types out = check_types(*a, **kw) File "numpy/core/setup.py", line 292, in check_types raise SystemError( SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
+1
For Anyone concerns:
If you want to install paddlespeech on python 3.10, you may try:
- build pyworld and install it. ref to https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder
- build paddle2onnx and install. ref to https://github.com/PaddlePaddle/Paddle2ONNX/blob/develop/docs/zh/compile.md
- install paddlespeech
see also http://5190m.top/note/2022/10/11/2022-10-11-paddlepaddle-intro.html
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
你好,我这电脑是苹果macos 13.2的系统,M2芯片的,不是以前intel芯片的电脑,试了python3.9和3.10,都报下面这个错误,onnx包单独安装只能装1.13.0,但是好像这个版本不支持PaddleSpeech,paddlepaddle我也试了2.3.0,2.4.0和2.4.1这几个版本,都不行,都是这个问题。
te/var/folders/k7/qgdcc1pj51n7j_jf4xvnh_v40000gn/T/pip-install-1m7dqzgx/onnx_d6923ea0a8c045259e93d4c615e2d381']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> onnx
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
centos 已经pip3.8 install . 没有报错,安装完所有环境,执行
paddlespeech asr --lang zh --input zh.wav
提示 非法指令
centos 已经pip3.8 install . 没有报错,安装完所有环境,执行 paddlespeech asr --lang zh --input zh.wav 提示 非法指令
提示非法指令那paddlespeech大概率是安装失败了,可以看一下安装的log,检查一下失败原因
摘录已经pip3.8安装。没有报错,安装完所有环境,执行paddle speech ASR-lang zh-input zh . wav提示 非法指令
提示非法指令那paddlespeech大概率是安装失败了,可以看一下安装的日志,检查一下失败原因
log里没有报错,依赖也全部安装
请问这个是什么问题呀,前后端都用不了
C:\Users\admin\PaddleSpeech\demos\speech_web\web_client>yarn dev --port 8011
yarn run v1.22.19
$ vite --port 8011
vite v2.9.15 dev server running at:
Network: http://192.168.0.106:8011/
Local: http://localhost:8011/
ready in 696ms.
20:06:17 [vite] http proxy error:
Error: connect ECONNREFUSED ::1:8010
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
20:06:17 [vite] http proxy error:
Error: connect ECONNREFUSED ::1:8010
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) (x2)
20:06:17 [vite] http proxy error:
Error: connect ECONNREFUSED ::1:8010
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) (x3)
20:06:17 [vite] http proxy error:
Error: connect ECONNREFUSED ::1:8010
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) (x4)
C:\Users\admin\PaddleSpeech\demos\speech_web\speech_server>python main.py --port 8010
C:\Program Files\Python39\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
warnings.warn(
C:\Program Files\Python39\lib\site-packages\paddleaudio_extension.py:141: UserWarning: paddleaudio C++ extension is not available. sox_io, sox_effect, kaldi raw feature is not supported!!!
warnings.warn(
2023-03-30 19:31:40.600 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed!
[2023-03-30 19:31:48,349] [ INFO] - We are using <class 'paddlenlp.transformers.ernie.tokenizer.ErnieTokenizer'> to load 'source/model'.
[2023-03-30 19:31:50,183] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\plato-mini\plato-mini-vocab.txt
[2023-03-30 19:31:50,185] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\plato-mini\plato-mini-spm.model
[2023-03-30 19:31:50,298] [ INFO] - tokenizer config file saved in C:\Users\admin.paddlenlp\models\plato-mini\tokenizer_config.json
[2023-03-30 19:31:50,299] [ INFO] - Special tokens file saved in C:\Users\admin.paddlenlp\models\plato-mini\special_tokens_map.json
[2023-03-30 19:31:50,302] [ INFO] - Model config UnifiedTransformerConfig {
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 1,
"eos_token_id": 2,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"mask_token_id": 30000,
"max_position_embeddings": 512,
"model_type": "unified_transformer",
"normalize_before": true,
"num_attention_heads": 12,
"num_hidden_layers": 6,
"pad_token_id": 0,
"paddlenlp_version": null,
"role_type_size": null,
"type_vocab_size": 2,
"unk_token_id": 0,
"vocab_size": 30001
}
[2023-03-30 19:32:04,531] [ INFO] - All model checkpoint weights were used when initializing UnifiedTransformerLMHeadModel.
[2023-03-30 19:32:04,532] [ INFO] - All the weights of UnifiedTransformerLMHeadModel were initialized from the model checkpoint at plato-mini.
If your task is similar to the task the model of the checkpoint was trained on, you can already use UnifiedTransformerLMHeadModel for predictions without further training.
2023-03-30 19:32:10.665 | INFO | paddlespeech.s2t.modules.embedding:init:150 - max len: 5000
[2023-03-30 19:32:17,173] [ INFO] - Initialize ASR server engine successfully on device: cpu.
[2023-03-30 19:32:17,179] [ INFO] - first and second beam size: 10, 10
[2023-03-30 19:32:17,179] [ INFO] - Endpont Opts: OnlineCTCEndpoingOpt(frame_shift_in_ms=10, blank=0, blank_threshold=0.8, rule1=OnlineCTCEndpointRule(must_contain_nonsilence=False, min_trailing_silence=5000, min_utterance_length=0), rule2=OnlineCTCEndpointRule(must_contain_nonsilence=True, min_trailing_silence=1000, min_utterance_length=0), rule3=OnlineCTCEndpointRule(must_contain_nonsilence=False, min_trailing_silence=0, min_utterance_length=20000))
[2023-03-30 19:32:23,360] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\bert-base-chinese\bert-base-chinese-vocab.txt
[2023-03-30 19:32:23,399] [ INFO] - tokenizer config file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\tokenizer_config.json
[2023-03-30 19:32:23,401] [ INFO] - Special tokens file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\special_tokens_map.json
[2023-03-30 19:32:23,642] [ INFO] - Initialize TTS server engine successfully on device: cpu.
[2023-03-30 19:32:27,394] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\bert-base-chinese\bert-base-chinese-vocab.txt
[2023-03-30 19:32:27,426] [ INFO] - tokenizer config file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\tokenizer_config.json
[2023-03-30 19:32:27,427] [ INFO] - Special tokens file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\special_tokens_map.json
2023-03-30 19:32:33.694 | INFO | paddlespeech.s2t.modules.embedding:init:150 - max len: 5000
[2023-03-30 19:32:40,769] [ WARNING] - The sample rate of the input file is not 16000.
The program will resample the wav file to 16000.
If the result does not meet your expectations,
Please input the 16k 16 bit 1 channel wav file.
[2023-03-30 19:32:52,575] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\bert-base-chinese\bert-base-chinese-vocab.txt
[2023-03-30 19:32:52,590] [ INFO] - tokenizer config file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\tokenizer_config.json
[2023-03-30 19:32:52,591] [ INFO] - Special tokens file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\special_tokens_map.json
Building prefix dict from the default dictionary ...
[2023-03-30 19:33:01,119] [ DEBUG] init.py:113 - Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\admin\AppData\Local\Temp\jieba.cache
[2023-03-30 19:33:01,121] [ DEBUG] init.py:132 - Loading model from cache C:\Users\admin\AppData\Local\Temp\jieba.cache
Loading model cost 0.705 seconds.
[2023-03-30 19:33:01,825] [ DEBUG] init.py:164 - Loading model cost 0.705 seconds.
Prefix dict has been built successfully.
[2023-03-30 19:33:01,825] [ DEBUG] init.py:166 - Prefix dict has been built successfully.
INFO: Started server process [17196]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8010 (Press CTRL+C to quit)
INFO: 127.0.0.1:51944 - "GET / HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:51944 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:52006 - "GET / HTTP/1.1" 404 Not Found
从日志上看前后端都是正常开启了的,而且后面能够收到 GET 请求,可以先通过 http://0.0.0.0:8010/docs 来看看fastapi 接口是否正常,看看 GET / POST 请求是否正常,如果都正常则可以就在前端的控制台再看看报错信息,现在的日志无法定位bug出在哪里
在安装PaddleSpeech过程中安装webrtcvad依赖的时候出现问题。
webrtcvad安装不上,请问有什么解决方案呢?谢谢!
`Installing collected packages: paddlehub
Attempting uninstall: paddlehub
Found existing installation: paddlehub 2.0.0
Uninstalling paddlehub-2.0.0:
Successfully uninstalled paddlehub-2.0.0
Successfully installed paddlehub-2.3.1
(paddlehub) PS D:\pycharm-projects\paddle> pip install webrtcvad
Collecting webrtcvad
Using cached webrtcvad-2.0.10.tar.gz (66 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: webrtcvad
Building wheel for webrtcvad (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [52 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying webrtcvad.py -> build\lib.win-amd64-3.8
running build_ext
building '_webrtcvad' extension
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\HN-LPC-235\AppData\Local\Temp\pip-install-71_rmm3e\webrtcvad_03463ab0b1d747fcbee6d9757d520b3e\setup.py", line 41, in
setup(
File "D:\Anaconda\envs\paddlehub\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\paddlehub\lib\site-packages\wheel\bdist_wheel.py", line 325, in run
self.run_command("build")
File "D:\Anaconda\envs\paddlehub\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\Anaconda\envs\paddlehub\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\build_ext.py", line 75, in run
_build_ext.run(self)
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 327, in compile
self.initialize()
File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 224, in initialize
vc_env = _get_vc_env(plat_spec)
File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\msvc.py", line 165, in msvc14_get_vc_env
return get_unpatched(msvc14_get_vc_env)(plat_spec)
File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 129, in _get_vc_env
out = subprocess.check_output(
AttributeError: 'str' object has no attribute 'decode'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for webrtcvad
Running setup.py clean for webrtcvad
Failed to build webrtcvad
Installing collected packages: webrtcvad
Running setup.py install for webrtcvad ... error
error: subprocess-exited-with-error
× Running setup.py install for webrtcvad did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying webrtcvad.py -> build\lib.win-amd64-3.8
running build_ext
building '_webrtcvad' extension
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\HN-LPC-235\AppData\Local\Temp\pip-install-71_rmm3e\webrtcvad_03463ab0b1d747fcbee6d9757d520b3e\setup.py", line 41, in
setup(
File "D:\Anaconda\envs\paddlehub\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "D:\Anaconda\envs\paddlehub\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\Anaconda\envs\paddlehub\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\build_ext.py", line 75, in run
_build_ext.run(self)
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 327, in compile
self.initialize()
File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 224, in initialize
vc_env = _get_vc_env(plat_spec)
File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\msvc.py", line 165, in msvc14_get_vc_env
return get_unpatched(msvc14_get_vc_env)(plat_spec)
File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 129, in _get_vc_env
out = subprocess.check_output(
AttributeError: 'str' object has no attribute 'decode'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> webrtcvad
`
PaddleSpeech安装过程中遇到的问题都可以在这里留言,一些跟安装相关的问题也会在这里进行汇总
老是提示 Could not build wheels for pyworld which use PEP 517 and cannot be installed directly
Problems encountered during the installation of paddlespeech can be left here, and some installation related problems will also be summarized here
|████████████████████████████████| 610 kB 92.4 MB/s
Using legacy 'setup.py install' for paddlespeech, since package 'wheel' is not installed.
Using legacy 'setup.py install' for webrtcvad, since package 'wheel' is not installed.
Using legacy 'setup.py install' for zhon, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pattern-singleton, since package 'wheel' is not installed.
Using legacy 'setup.py install' for distance, since package 'wheel' is not installed.
Using legacy 'setup.py install' for audioread, since package 'wheel' is not installed.
Using legacy 'setup.py install' for seqeval, since package 'wheel' is not installed.
Using legacy 'setup.py install' for jieba, since package 'wheel' is not installed.
Using legacy 'setup.py install' for ffmpy, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Building wheels for collected packages: pyworld
Building wheel for pyworld (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.9 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpk3hdyga8
cwd: /tmp/pip-install-pp7e4lzc/pyworld
Complete output (36 lines):
/tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead
warnings.warn(
/tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/pyworld
copying pyworld/init.py -> build/lib.linux-x86_64-cpython-39/pyworld
running build_ext
skipping 'pyworld/pyworld.cpp' Cython extension (up-to-date)
building 'pyworld.pyworld' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/lib
creating build/temp.linux-x86_64-cpython-39/lib/World
creating build/temp.linux-x86_64-cpython-39/lib/World/src
creating build/temp.linux-x86_64-cpython-39/pyworld
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/cheaptrick.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/cheaptrick.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/codec.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/codec.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/common.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/common.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/d4c.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/d4c.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/dio.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/dio.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/fft.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/fft.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/harvest.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/harvest.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/matlabfunctions.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/matlabfunctions.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/stonemask.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/stonemask.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesis.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesis.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesisrealtime.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesisrealtime.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c pyworld/pyworld.cpp -o build/temp.linux-x86_64-cpython-39/pyworld/pyworld.o
pyworld/pyworld.cpp:6:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
ERROR: Failed building wheel for pyworld
Failed to build pyworld
ERROR: Could not build wheels for pyworld which use PEP 517 and cannot be installed directly
求大神帮助
PaddleSpeech安装过程中遇到的问题都可以在这里留言,一些跟安装相关的问题也会在这里进行汇总
老是提示 Could not build wheels for pyworld which use PEP 517 and cannot be installed directly
Problems encountered during the installation of paddlespeech can be left here, and some installation related problems will also be summarized here
|████████████████████████████████| 610 kB 92.4 MB/s
Using legacy 'setup.py install' for paddlespeech, since package 'wheel' is not installed.
Using legacy 'setup.py install' for webrtcvad, since package 'wheel' is not installed.
Using legacy 'setup.py install' for zhon, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pattern-singleton, since package 'wheel' is not installed.
Using legacy 'setup.py install' for distance, since package 'wheel' is not installed.
Using legacy 'setup.py install' for audioread, since package 'wheel' is not installed.
Using legacy 'setup.py install' for seqeval, since package 'wheel' is not installed.
Using legacy 'setup.py install' for jieba, since package 'wheel' is not installed.
Using legacy 'setup.py install' for ffmpy, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Building wheels for collected packages: pyworld
Building wheel for pyworld (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.9 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpk3hdyga8
cwd: /tmp/pip-install-pp7e4lzc/pyworld
Complete output (36 lines):
/tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead
warnings.warn(
/tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/pyworld
copying pyworld/init.py -> build/lib.linux-x86_64-cpython-39/pyworld
running build_ext
skipping 'pyworld/pyworld.cpp' Cython extension (up-to-date)
building 'pyworld.pyworld' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/lib
creating build/temp.linux-x86_64-cpython-39/lib/World
creating build/temp.linux-x86_64-cpython-39/lib/World/src
creating build/temp.linux-x86_64-cpython-39/pyworld
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/cheaptrick.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/cheaptrick.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/codec.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/codec.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/common.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/common.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/d4c.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/d4c.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/dio.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/dio.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/fft.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/fft.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/harvest.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/harvest.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/matlabfunctions.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/matlabfunctions.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/stonemask.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/stonemask.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesis.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesis.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesisrealtime.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesisrealtime.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c pyworld/pyworld.cpp -o build/temp.linux-x86_64-cpython-39/pyworld/pyworld.o
pyworld/pyworld.cpp:6:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1ERROR: Failed building wheel for pyworld Failed to build pyworld ERROR: Could not build wheels for pyworld which use PEP 517 and cannot be installed directly
求大神帮助
我猜测,是因编译环境不完整,导致安装失败。
建议使用docker来自动部署环境。 https://hub.docker.com/r/paddlecloud/paddlespeech
pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing d:\0sdxx\paddlespeech-develop
Preparing metadata (setup.py) ... done
Requirement already satisfied: braceexpand in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.1.7)
Requirement already satisfied: editdistance in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.6.2)
Requirement already satisfied: g2p_en in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (2.1.0)
Requirement already satisfied: g2pM in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.1.2.5)
Requirement already satisfied: h5py in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (3.8.0)
Collecting hyperpyyaml
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/48/25/b287635d4676bf380c31b5adca1ec6c6aa8c4e26a24e1e54893397b5bbe0/HyperPyYAML-1.2.0-py3-none-any.whl (16 kB)
Requirement already satisfied: inflect in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (6.0.4)
Requirement already satisfied: jsonlines in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (3.1.0)
Requirement already satisfied: librosa==0.8.1 in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.8.1)
Requirement already satisfied: loguru in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.7.0)
Requirement already satisfied: matplotlib in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (3.5.3)
Requirement already satisfied: nara_wpe in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.0.9)
Requirement already satisfied: onnxruntime>=1.11.0 in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (1.11.0)
Requirement already satisfied: opencc in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (1.1.1)
Collecting opencc-python-reimplemented
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/30/6b/055b7806f320cc8f2cdf23c5f70221c0dc1683fca9ffaf76dfc2ad4b91b6/opencc_python_reimplemented-0.1.7-py2.py3-none-any.whl (481 kB)
Requirement already satisfied: pandas in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (1.3.5)
ERROR: Could not find a version that satisfies the requirement paddleaudio>=1.1.0 (from paddlespeech) (from versions: 0.1.0a0, 0.1.0, 0.2.0, 0.2.1, 1.0.0a0, 1.0.0, 1.0.1, 1.0.2)
ERROR: No matching distribution found for paddleaudio>=1.1.0
pip install paddleaudio==1.1.0
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement paddleaudio==1.1.0 (from versions: 0.1.0a0, 0.1.0, 0.2.0, 0.2.1, 1.0.0a0, 1.0.0, 1.0.1, 1.0.2)
ERROR: No matching distribution found for paddleaudio==1.1.0
pip install -e .[develop] -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///D:/0SDXX/PaddleSpeech-develop
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "D:\0SDXX\PaddleSpeech-develop\setup.py", line 320, in <module>
with version_info():
File "D:\anaconda3\envs\PaddleSpeech\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\0SDXX\PaddleSpeech-develop\setup.py", line 244, in version_info
write_version_py()
File "D:\0SDXX\PaddleSpeech-develop\setup.py", line 222, in write_version_py
COMMITID = check_output("git rev-parse HEAD")
File "D:\0SDXX\PaddleSpeech-develop\setup.py", line 112, in check_output
out_bytes = sp.check_output(cmd.split())
File "D:\anaconda3\envs\PaddleSpeech\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "D:\anaconda3\envs\PaddleSpeech\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\anaconda3\envs\PaddleSpeech\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "D:\anaconda3\envs\PaddleSpeech\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
__version__ = '0.0.0'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
如果运行指令paddlespeech asr --lang zh --input zh.wav
报以下错误
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/paddlespeech", line 8, in <module>
sys.exit(_execute())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/paddlespeech/cli/entry.py", line 40, in _execute
exec("from {} import {}".format(module, cls))
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/paddlespeech/cli/asr/__init__.py", line 14, in <module>
from .infer import ASRExecutor
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/paddlespeech/cli/asr/infer.py", line 24, in <module>
import librosa
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/librosa/__init__.py", line 211, in <module>
from . import core
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/librosa/core/__init__.py", line 9, in <module>
from .constantq import * # pylint: disable=wildcard-import
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/librosa/core/constantq.py", line 1059, in <module>
dtype=np.complex,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'complex'.
`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
那是因为numpy版本过高所致,卸载numpy,并重新安装numpy版本为1.23.5
refer: #3235
我是ubuntu18.4系统,安装完paddlespeech后,想启动speech_web的后端,报错paddlespeech_ctcdecoders not installed!,注,我不想用docker
python main.py --port 8010
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see pypa/pip#5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
ERROR: Could not find a version that satisfies the requirement paddlespeech_ctcdecoders (from versions: none)
ERROR: No matching distribution found for paddlespeech_ctcdecoders
2023-05-10 15:50:08.581 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed!
Traceback (most recent call last):
File "main.py", line 21, in
from src.robot import Robot
File "/home/deepnature/ai/paddle/PaddleSpeech-develop/demos/speech_web/speech_server/src/robot.py", line 6, in
from src.SpeechBase.tts import TTS
File "/home/deepnature/ai/paddle/PaddleSpeech-develop/demos/speech_web/speech_server/src/SpeechBase/tts.py", line 14, in
from paddlespeech.server.engine.tts.online.onnx.tts_engine import TTSEngine
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/server/engine/tts/online/onnx/tts_engine.py", line 24, in
from paddlespeech.cli.tts.infer import TTSExecutor
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/cli/tts/init.py", line 14, in
from .infer import TTSExecutor
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/cli/tts/infer.py", line 33, in
from paddlespeech.t2s.exps.syn_utils import get_am_inference
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/exps/syn_utils.py", line 36, in
from paddlespeech.t2s.frontend.mix_frontend import MixFrontend
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/mix_frontend.py", line 20, in
from paddlespeech.t2s.frontend.zh_frontend import Frontend
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/zh_frontend.py", line 31, in
from paddlespeech.t2s.frontend.g2pw import G2PWOnnxConverter
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/g2pw/init.py", line 1, in
from .onnx_api import G2PWOnnxConverter
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/g2pw/onnx_api.py", line 27, in
from opencc import OpenCC
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/opencc.py", line 24, in
libopencc = CDLL('libopencc.so.1', use_errno=True)
File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: libopencc.so.1: 无法打开共享对象文件: 没有那个文件或目录
我是ubuntu18.4系统,安装完paddlespeech后,想启动speech_web的后端,报错paddlespeech_ctcdecoders not installed!,注,我不想用docker python main.py --port 8010 WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see pypa/pip#5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. ERROR: Could not find a version that satisfies the requirement paddlespeech_ctcdecoders (from versions: none) ERROR: No matching distribution found for paddlespeech_ctcdecoders 2023-05-10 15:50:08.581 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed! Traceback (most recent call last): File "main.py", line 21, in from src.robot import Robot File "/home/deepnature/ai/paddle/PaddleSpeech-develop/demos/speech_web/speech_server/src/robot.py", line 6, in from src.SpeechBase.tts import TTS File "/home/deepnature/ai/paddle/PaddleSpeech-develop/demos/speech_web/speech_server/src/SpeechBase/tts.py", line 14, in from paddlespeech.server.engine.tts.online.onnx.tts_engine import TTSEngine File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/server/engine/tts/online/onnx/tts_engine.py", line 24, in from paddlespeech.cli.tts.infer import TTSExecutor File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/cli/tts/init.py", line 14, in from .infer import TTSExecutor File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/cli/tts/infer.py", line 33, in from paddlespeech.t2s.exps.syn_utils import get_am_inference File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/exps/syn_utils.py", line 36, in from paddlespeech.t2s.frontend.mix_frontend import MixFrontend File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/mix_frontend.py", line 20, in from paddlespeech.t2s.frontend.zh_frontend import Frontend File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/zh_frontend.py", line 31, in from paddlespeech.t2s.frontend.g2pw import G2PWOnnxConverter File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/g2pw/init.py", line 1, in from .onnx_api import G2PWOnnxConverter File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/g2pw/onnx_api.py", line 27, in from opencc import OpenCC File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/opencc.py", line 24, in libopencc = CDLL('libopencc.so.1', use_errno=True) File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/ctypes/init.py", line 364, in init self._handle = _dlopen(self._name, mode) OSError: libopencc.so.1: 无法打开共享对象文件: 没有那个文件或目录
自己解决了,需要安装 pip install opencc-python-reimplemented==0.1.4
Building wheels for collected packages: pyworld, webrtcvad, bottleneck
Building wheel for pyworld (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [71 lines of output]
/home/jetson/.local/lib/python3.7/site-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2023-Sep-26, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
/home/jetson/.local/lib/python3.7/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
/home/jetson/.local/lib/python3.7/site-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2023-Sep-26, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/pyworld
copying pyworld/__init__.py -> build/lib.linux-aarch64-cpython-37/pyworld
running build_ext
building 'pyworld.pyworld' extension
creating build/temp.linux-aarch64-cpython-37
creating build/temp.linux-aarch64-cpython-37/lib
creating build/temp.linux-aarch64-cpython-37/lib/World
creating build/temp.linux-aarch64-cpython-37/lib/World/src
creating build/temp.linux-aarch64-cpython-37/pyworld
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/cheaptrick.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/cheaptrick.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/codec.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/codec.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/common.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/common.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/d4c.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/d4c.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/dio.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/dio.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/fft.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/fft.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/harvest.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/harvest.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/matlabfunctions.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/matlabfunctions.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/stonemask.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/stonemask.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/synthesis.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/synthesis.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c lib/World/src/synthesisrealtime.cpp -o build/temp.linux-aarch64-cpython-37/lib/World/src/synthesisrealtime.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib/World/src -I/usr/include/python3.7m -I/home/jetson/.local/lib/python3.7/site-packages/numpy/core/include -c pyworld/pyworld.cpp -o build/temp.linux-aarch64-cpython-37/pyworld/pyworld.o
pyworld/pyworld.cpp:4:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyworld
Running setup.py clean for pyworld
Building wheel for webrtcvad (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
copying webrtcvad.py -> build/lib.linux-aarch64-cpython-37
running build_ext
building '_webrtcvad' extension
creating build/temp.linux-aarch64-cpython-37
creating build/temp.linux-aarch64-cpython-37/cbits
creating build/temp.linux-aarch64-cpython-37/cbits/webrtc
creating build/temp.linux-aarch64-cpython-37/cbits/webrtc/common_audio
creating build/temp.linux-aarch64-cpython-37/cbits/webrtc/common_audio/signal_processing
creating build/temp.linux-aarch64-cpython-37/cbits/webrtc/common_audio/vad
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DWEBRTC_POSIX -Icbits -I/usr/include/python3.7m -c cbits/pywebrtcvad.c -o build/temp.linux-aarch64-cpython-37/cbits/pywebrtcvad.o
cbits/pywebrtcvad.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for webrtcvad
Running setup.py clean for webrtcvad
Building wheel for bottleneck (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for bottleneck (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [91 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/bottleneck
copying bottleneck/init.py -> build/lib.linux-aarch64-cpython-37/bottleneck
copying bottleneck/_version.py -> build/lib.linux-aarch64-cpython-37/bottleneck
copying bottleneck/_pytesttester.py -> build/lib.linux-aarch64-cpython-37/bottleneck
creating build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/move_test.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/memory_test.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/init.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/util.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/input_modification_test.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/common.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/list_input_test.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/reduce_test.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/nonreduce_test.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/nonreduce_axis_test.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/test_template.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
copying bottleneck/tests/scalar_input_test.py -> build/lib.linux-aarch64-cpython-37/bottleneck/tests
creating build/lib.linux-aarch64-cpython-37/bottleneck/slow
copying bottleneck/slow/init.py -> build/lib.linux-aarch64-cpython-37/bottleneck/slow
copying bottleneck/slow/move.py -> build/lib.linux-aarch64-cpython-37/bottleneck/slow
copying bottleneck/slow/reduce.py -> build/lib.linux-aarch64-cpython-37/bottleneck/slow
copying bottleneck/slow/nonreduce_axis.py -> build/lib.linux-aarch64-cpython-37/bottleneck/slow
copying bottleneck/slow/nonreduce.py -> build/lib.linux-aarch64-cpython-37/bottleneck/slow
creating build/lib.linux-aarch64-cpython-37/bottleneck/src
copying bottleneck/src/init.py -> build/lib.linux-aarch64-cpython-37/bottleneck/src
copying bottleneck/src/bn_config.py -> build/lib.linux-aarch64-cpython-37/bottleneck/src
copying bottleneck/src/bn_template.py -> build/lib.linux-aarch64-cpython-37/bottleneck/src
creating build/lib.linux-aarch64-cpython-37/bottleneck/benchmark
copying bottleneck/benchmark/init.py -> build/lib.linux-aarch64-cpython-37/bottleneck/benchmark
copying bottleneck/benchmark/bench.py -> build/lib.linux-aarch64-cpython-37/bottleneck/benchmark
copying bottleneck/benchmark/autotimeit.py -> build/lib.linux-aarch64-cpython-37/bottleneck/benchmark
copying bottleneck/benchmark/bench_detailed.py -> build/lib.linux-aarch64-cpython-37/bottleneck/benchmark
creating build/lib.linux-aarch64-cpython-37/bottleneck/tests/data
creating build/lib.linux-aarch64-cpython-37/bottleneck/tests/data/template_test
copying bottleneck/tests/data/template_test/truth.c -> build/lib.linux-aarch64-cpython-37/bottleneck/tests/data/template_test
copying bottleneck/tests/data/template_test/test_template.c -> build/lib.linux-aarch64-cpython-37/bottleneck/tests/data/template_test
UPDATING build/lib.linux-aarch64-cpython-37/bottleneck/_version.py
set build/lib.linux-aarch64-cpython-37/bottleneck/_version.py to '1.3.7'
running build_ext
running config
compiling '_configtest.c':
#pragma GCC diagnostic error "-Wattributes"
int __attribute__((optimize("O3"))) have_attribute_optimize_opt_3(void*);
int main(void)
{
return 0;
}
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
compiling '_configtest.c':
#ifndef __cplusplus
static inline int static_func (void)
{
return 0;
}
inline int nostatic_func (void)
{
return 0;
}
#endif
int main(void) {
int r1 = static_func();
int r2 = nostatic_func();
return r1 + r2;
}
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
building 'bottleneck.reduce' extension
creating build/temp.linux-aarch64-cpython-37
creating build/temp.linux-aarch64-cpython-37/bottleneck
creating build/temp.linux-aarch64-cpython-37/bottleneck/src
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-build-env-4doudzf0/overlay/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -Ibottleneck/src -c bottleneck/src/reduce.c -o build/temp.linux-aarch64-cpython-37/bottleneck/src/reduce.o -O2
In file included from bottleneck/src/reduce_template.c:3:0:
bottleneck/src/bottleneck.h:6:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bottleneck
Failed to build pyworld webrtcvad bottleneck
ERROR: Could not build wheels for pyworld, webrtcvad, bottleneck, which is required to install pyproject.toml-based projects
pyword安装失败 环境arrch64 cuda10.2
我用hard方式安装PaddleSpeech报错了,用sudo取得root权限安装的,没用docker,用的anaconda建的虚拟环境。命令和log如下:
安装PaddlePaddle:
python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
成功。
安装PaddleSpeech报错:
sudo pip install -e .[develop] -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///home/lu/work/paddlepaddle/PaddleSpeech
Preparing metadata (setup.py) ... done
Collecting ToJyutping==0.2.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/28/b5/6188f124055061774063f9cbdbce7ee52e6ba977653cdb1a3e9998197b02/ToJyutping-0.2.1-py3-none-any.whl (2.3 MB)
|████████████████████████████████| 2.3 MB 1.9 MB/s
Collecting braceexpand
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fa/93/e8c04e80e82391a6e51f218ca49720f64236bc824e92152a2633b74cf7ab/braceexpand-0.1.7-py2.py3-none-any.whl (5.9 kB)
Collecting editdistance
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/12/c1/cf77b90c2ea3e10216b514b6953dcfadf9002dcb07a616daf84099510543/editdistance-0.6.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (281 kB)
|████████████████████████████████| 281 kB 10.9 MB/s
Collecting g2pM
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/af/21/dc5b497f09a94a9605e0b8a94ad0e01ae73a2b65109bf5bd325b0814b6a8/g2pM-0.1.2.5-py3-none-any.whl (1.7 MB)
|████████████████████████████████| 1.7 MB 6.0 MB/s
Collecting g2p_en
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d7/d9/b77dc634a7a0c0c97716ba97dd0a28cbfa6267c96f359c4f27ed71cbd284/g2p_en-2.1.0-py3-none-any.whl (3.1 MB)
|████████████████████████████████| 3.1 MB 8.2 MB/s
Collecting h5py
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/70/7a/e53e500335afb6b1aade11227cdf107fca54106a1dca5c9d13242a043f3b/h5py-3.1.0-cp36-cp36m-manylinux1_x86_64.whl (4.0 MB)
|████████████████████████████████| 4.0 MB 6.3 MB/s
Collecting hyperpyyaml
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/94/b1/fedad01d1641d787e85b7b6d8b1aef1833c7101a62d64c121f79c81491f1/HyperPyYAML-1.2.1-py3-none-any.whl (16 kB)
Collecting inflect
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4f/a8/031641ad73a1bd1a9932261a6193864556172b333dde263fed8b5a0940cf/inflect-5.3.0-py3-none-any.whl (32 kB)
Collecting jsonlines
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/68/32/290ca20eb3a2b97ffa6ba1791fcafacb3cd2f41f539c96eb54cfc3cfcf47/jsonlines-3.1.0-py3-none-any.whl (8.6 kB)
Collecting librosa==0.8.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/54/19/a0e2bdc94bc0d1555e4f9bc4099a0751da83fa6e1e6157ec005564f8a98a/librosa-0.8.1-py3-none-any.whl (203 kB)
|████████████████████████████████| 203 kB 4.5 MB/s
Collecting loguru
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/71/bd/337f7a0cd2628c4c77512d78e26f93b13c327a2ddf2132001dd78c000bf4/loguru-0.7.0-py3-none-any.whl (59 kB)
|████████████████████████████████| 59 kB 1.9 MB/s
Collecting matplotlib
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/09/03/b7b30fa81cb687d1178e085d0f01111ceaea3bf81f9330c937fb6f6c8ca0/matplotlib-3.3.4-cp36-cp36m-manylinux1_x86_64.whl (11.5 MB)
|████████████████████████████████| 11.5 MB 6.4 MB/s
Collecting nara_wpe
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e0/11/195e4ad1a878560729adbf6da914e1721aa22d0b8b5245499f75967b3e2a/nara_wpe-0.0.9-py3-none-any.whl (33 kB)
ERROR: Could not find a version that satisfies the requirement numpy==1.23.5 (from paddlespeech[develop]) (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5)
ERROR: No matching distribution found for numpy==1.23.5
我的python版本是3.8,CUDA版本11.6,numpy版本检测过是1.23.5。
请帮看看是什么原因!谢谢!
paddlespeech asr --lang zh --input test.wav
[2023-08-21 11:31:41,062] [ ERROR] - list index out of range
Traceback (most recent call last):
File "/root/anaconda3/envs/paddle_env/lib/python3.8/site-packages/paddlespeech/cli/asr/infer.py", line 314, in infer
result_transcripts = self.model.decode(
File "/root/anaconda3/envs/paddle_env/lib/python3.8/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/root/anaconda3/envs/paddle_env/lib/python3.8/site-packages/paddle/fluid/dygraph/base.py", line 347, in _decorate_function
return func(*args, **kwargs)
File "/root/anaconda3/envs/paddle_env/lib/python3.8/site-packages/paddlespeech/s2t/models/u2/u2.py", line 818, in decode
hyp = self.attention_rescoring(
File "/root/anaconda3/envs/paddle_env/lib/python3.8/site-packages/paddlespeech/s2t/models/u2/u2.py", line 532, in attention_rescoring
assert speech.shape[0] == speech_lengths.shape[0]
IndexError: list index out of range
大佬们好,启动服务报错了,应该如何解决呢
(paddlespeech) [web@bdp-measure3 PaddleSpeech]$ paddlespeech_server start --config_file ./paddlespeech/server/conf/application.yaml
Traceback (most recent call last):
File "/opt/bdp/data01/anaconda3/envs/paddlespeech/bin/paddlespeech_server", line 5, in
from paddlespeech.server.entry import server_execute
File "/opt/bdp/data01/anaconda3/envs/paddlespeech/lib/python3.10/site-packages/paddlespeech/server/init.py", line 16, in
from .base_commands import ClientBaseCommand
File "/opt/bdp/data01/anaconda3/envs/paddlespeech/lib/python3.10/site-packages/paddlespeech/server/base_commands.py", line 18, in
from .util import cli_client_register
File "/opt/bdp/data01/anaconda3/envs/paddlespeech/lib/python3.10/site-packages/paddlespeech/server/util.py", line 27, in
import paddleaudio
File "/opt/bdp/data01/anaconda3/envs/paddlespeech/lib/python3.10/site-packages/paddleaudio/init.py", line 15, in
from . import backends
File "/opt/bdp/data01/anaconda3/envs/paddlespeech/lib/python3.10/site-packages/paddleaudio/backends/init.py", line 14, in
from . import utils
File "/opt/bdp/data01/anaconda3/envs/paddlespeech/lib/python3.10/site-packages/paddleaudio/backends/utils.py", line 10, in
from . import no_backend
File "/opt/bdp/data01/anaconda3/envs/paddlespeech/lib/python3.10/site-packages/paddleaudio/backends/no_backend.py", line 7, in
from paddle import Tensor
ImportError: cannot import name 'Tensor' from 'paddle' (unknown location)
(paddlespeech) [web@bdp-measure3 PaddleSpeech]$ pip list
Package Version
aiohttp 3.8.5
aiosignal 1.3.1
annotated-types 0.5.0
anyio 3.7.1
astor 0.8.1
async-timeout 4.0.3
attrs 23.1.0
audioread 3.0.0
Babel 2.12.1
bce-python-sdk 0.8.90
blinker 1.6.2
Bottleneck 1.3.7
braceexpand 0.1.7
certifi 2023.7.22
cffi 1.15.1
charset-normalizer 3.2.0
click 8.1.7
colorama 0.4.6
coloredlogs 15.0.1
colorlog 6.7.0
contourpy 1.1.0
cycler 0.11.0
Cython 3.0.0
datasets 2.14.4
decorator 5.1.1
dill 0.3.4
Distance 0.1.3
editdistance 0.6.2
einops 0.6.1
exceptiongroup 1.1.3
fastapi 0.101.1
filelock 3.12.2
Flask 2.3.2
flask-babel 3.1.0
flatbuffers 23.5.26
fonttools 4.42.1
frozenlist 1.4.0
fsspec 2023.6.0
ftfy 6.1.1
future 0.18.3
g2p-en 2.1.0
g2pM 0.1.2.5
h11 0.14.0
h5py 3.9.0
httpcore 0.17.3
httpx 0.24.1
huggingface-hub 0.16.4
humanfriendly 10.0
HyperPyYAML 1.2.1
idna 3.4
inflect 7.0.0
itsdangerous 2.1.2
jieba 0.42.1
Jinja2 3.1.2
joblib 1.3.2
jsonlines 3.1.0
kaldiio 2.18.0
kiwisolver 1.4.4
librosa 0.8.1
llvmlite 0.40.1
loguru 0.7.0
lxml 4.9.3
markdown-it-py 3.0.0
MarkupSafe 2.1.3
matplotlib 3.7.2
mdurl 0.1.2
mock 5.1.0
mpmath 1.3.0
multidict 6.0.4
multiprocess 0.70.12.2
nara-wpe 0.0.9
nltk 3.8.1
numba 0.57.1
numpy 1.24.4
onnx 1.14.0
onnxruntime 1.15.1
OpenCC 1.1.6
opencc-python-reimplemented 0.1.7
opt-einsum 3.3.0
packaging 23.1
paddle-bfloat 0.1.7
paddle2onnx 1.0.9
paddleaudio 1.1.0
paddlefsl 1.1.0
paddlenlp 2.6.0
paddlepaddle-gpu 2.5.1.post120
paddleslim 2.4.1
paddlespeech 1.4.1
paddlespeech-feat 0.1.0
pandas 2.0.3
parameterized 0.9.0
pathos 0.2.8
pattern-singleton 1.2.0
Pillow 10.0.0
pip 23.2.1
platformdirs 3.10.0
pooch 1.7.0
portalocker 2.7.0
pox 0.3.3
ppdiffusers 0.16.3
ppft 1.7.6.7
praatio 5.1.1
prettytable 3.8.0
protobuf 3.20.2
psutil 5.9.5
pyarrow 12.0.1
pybind11 2.11.1
pycparser 2.21
pycryptodome 3.18.0
pydantic 2.2.1
pydantic_core 2.6.1
Pygments 2.16.1
pygtrie 2.5.0
pyparsing 3.0.9
pypinyin 0.44.0
pypinyin-dict 0.6.0
pytest-runner 6.0.0
python-dateutil 2.8.2
pytz 2023.3
pyworld 0.3.4
PyYAML 6.0.1
pyzmq 25.1.1
rarfile 4.0
regex 2023.8.8
requests 2.31.0
resampy 0.4.2
rich 13.5.2
ruamel.yaml 0.17.28
ruamel.yaml.clib 0.2.7
sacrebleu 2.3.1
safetensors 0.3.2
scikit-learn 1.3.0
scipy 1.11.2
sentencepiece 0.1.99
seqeval 1.2.2
setuptools 68.0.0
six 1.16.0
sniffio 1.3.0
soundfile 0.12.1
starlette 0.27.0
swig 4.1.1
sympy 1.12
tabulate 0.9.0
TextGrid 1.5
threadpoolctl 3.2.0
timer 0.2.2
ToJyutping 0.2.3
tqdm 4.66.1
typeguard 2.13.3
typer 0.9.0
typing_extensions 4.7.1
tzdata 2023.3
urllib3 2.0.4
uvicorn 0.23.2
visualdl 2.5.3
wcwidth 0.2.6
webrtcvad 2.0.10
websockets 11.0.3
Werkzeug 2.3.7
wheel 0.38.4
xxhash 3.3.0
yacs 0.1.8
yarl 1.9.2
zhon 2.0.2
PaddleSpeech安装过程中遇到的问题都可以在这里留言,一些跟安装相关的问题也会在这里进行汇总
老是提示 Could not build wheels for pyworld which use PEP 517 and cannot be installed directly
Problems encountered during the installation of paddlespeech can be left here, and some installation related problems will also be summarized here
|████████████████████████████████| 610 kB 92.4 MB/s
Using legacy 'setup.py install' for paddlespeech, since package 'wheel' is not installed.
Using legacy 'setup.py install' for webrtcvad, since package 'wheel' is not installed.
Using legacy 'setup.py install' for zhon, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pattern-singleton, since package 'wheel' is not installed.
Using legacy 'setup.py install' for distance, since package 'wheel' is not installed.
Using legacy 'setup.py install' for audioread, since package 'wheel' is not installed.
Using legacy 'setup.py install' for seqeval, since package 'wheel' is not installed.
Using legacy 'setup.py install' for jieba, since package 'wheel' is not installed.
Using legacy 'setup.py install' for ffmpy, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Building wheels for collected packages: pyworld
Building wheel for pyworld (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.9 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpk3hdyga8
cwd: /tmp/pip-install-pp7e4lzc/pyworld
Complete output (36 lines):
/tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead
warnings.warn(
/tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/pyworld
copying pyworld/init.py -> build/lib.linux-x86_64-cpython-39/pyworld
running build_ext
skipping 'pyworld/pyworld.cpp' Cython extension (up-to-date)
building 'pyworld.pyworld' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/lib
creating build/temp.linux-x86_64-cpython-39/lib/World
creating build/temp.linux-x86_64-cpython-39/lib/World/src
creating build/temp.linux-x86_64-cpython-39/pyworld
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/cheaptrick.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/cheaptrick.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/codec.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/codec.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/common.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/common.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/d4c.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/d4c.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/dio.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/dio.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/fft.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/fft.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/harvest.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/harvest.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/matlabfunctions.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/matlabfunctions.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/stonemask.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/stonemask.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesis.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesis.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesisrealtime.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesisrealtime.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c pyworld/pyworld.cpp -o build/temp.linux-x86_64-cpython-39/pyworld/pyworld.o
pyworld/pyworld.cpp:6:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1ERROR: Failed building wheel for pyworld Failed to build pyworld ERROR: Could not build wheels for pyworld which use PEP 517 and cannot be installed directly
求大神帮助
try apt install python3-dev
执行命令
pip install paddlespeech -i https://pypi.tuna.tsinghua.edu.cn/simple
时遇到错误
Collecting seqeval Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9d/2d/233c79d5b4e5ab1dbf111242299153f3caddddbb691219f363ad55ce783d/seqeval-1.2.2.tar.gz (43 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [38 lines of output] WARNING: The repository located at mirrors.cloud.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.cloud.aliyuncs.com'. ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none) ERROR: No matching distribution found for setuptools_scm /root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead warnings.warn( /root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( Traceback (most recent call last): File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py", line 82, in fetch_build_egg subprocess.check_call(cmd) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/root/miniconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp19h72t5e', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-7ygs5ns0/seqeval_aad802f54b744003817cbee187128e0b/setup.py", line 27, in <module> setup( File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/__init__.py", line 86, in setup _install_setup_requires(attrs) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py", line 861, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve dist = best[req.key] = env.best_match( File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1062, in best_match return self.obtain(req, installer) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1074, in obtain return installer(requirement) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py", line 941, in fetch_build_egg return fetch_build_egg(self, req) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py", line 84, in fetch_build_egg raise DistutilsError(str(e)) from e distutils.errors.DistutilsError: Command '['/root/miniconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp19h72t5e', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
这个问题解决了吗?
在ubuntu上运行,一直卡在这里 后面就程序就被killed了,请问有大佬知道是什么原因吗 应该怎么解决?
ubuntu 22.04
python 3.8
paddle 2.5.0 CPU版本 (试过其他版本也没有解决)
paddlespeech 1.4.1
代码和音频是官方案例
from paddlespeech.cli.asr.infer import ASRExecutor
from paddlespeech.cli.tts.infer import TTSExecutor
print('开始执行')
asr = ASRExecutor()
result = asr(audio_file="xxx/zh.wav")
print(result)
在centos7 上面安装完所有环境,执行
paddlespeech asr --lang zh --input zh.wav 出现异常:
in
from . import libpaddle
ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory
最后发现没有安装paddle:
python3 -m pip show paddle
WARNING: Package(s) not found: paddle
请问如何解决?如果安装paddle是否对版本有要求?
您好,我使用AIstudio进行安装,
!pip install pytest-runner
!pip install paddlespeech
要添加--user。我成功安装之后运行代码出现如下错误
ImportError Traceback (most recent call last)
Cell In[1], line 2
1 import paddlespeech
----> 2 from paddlespeech.cli.tts.infer import TTSExecutor
3 tts = TTSExecutor()
4 tts(text="今天天气十分不错。", output="output.wav")
File ~/.local/lib/python3.10/site-packages/paddlespeech/cli/tts/init.py:14
1 # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
(...)
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
---> 14 from .infer import TTSExecutor
File ~/.local/lib/python3.10/site-packages/paddlespeech/cli/tts/infer.py:33
31 from ..utils import stats_wrapper
32 from paddlespeech.resource import CommonTaskResource
---> 33 from paddlespeech.t2s.exps.syn_utils import get_am_inference
34 from paddlespeech.t2s.exps.syn_utils import get_frontend
35 from paddlespeech.t2s.exps.syn_utils import get_sess
File ~/.local/lib/python3.10/site-packages/paddlespeech/t2s/exps/syn_utils.py:35
33 from paddlespeech.t2s.frontend import English
34 from paddlespeech.t2s.frontend.canton_frontend import CantonFrontend
---> 35 from paddlespeech.t2s.frontend.mix_frontend import MixFrontend
36 from paddlespeech.t2s.frontend.zh_frontend import Frontend
37 from paddlespeech.t2s.modules.normalizer import ZScore
File ~/.local/lib/python3.10/site-packages/paddlespeech/t2s/frontend/mix_frontend.py:22
19 import paddle
21 from paddlespeech.t2s.frontend import English
---> 22 from paddlespeech.t2s.frontend.zh_frontend import Frontend
23 from paddlespeech.t2s.ssml.xml_processor import MixTextProcessor
26 class MixFrontend():
File ~/.local/lib/python3.10/site-packages/paddlespeech/t2s/frontend/zh_frontend.py:31
28 from pypinyin import Style
29 from pypinyin_dict.phrase_pinyin_data import large_pinyin
---> 31 from paddlespeech.t2s.frontend.g2pw import G2PWOnnxConverter
32 from paddlespeech.t2s.frontend.generate_lexicon import generate_lexicon
33 from paddlespeech.t2s.frontend.rhy_prediction.rhy_predictor import RhyPredictor
File ~/.local/lib/python3.10/site-packages/paddlespeech/t2s/frontend/g2pw/init.py:1
----> 1 from .onnx_api import G2PWOnnxConverter
File ~/.local/lib/python3.10/site-packages/paddlespeech/t2s/frontend/g2pw/onnx_api.py:27
25 import numpy as np
26 import onnxruntime
---> 27 from opencc import OpenCC
28 from paddlenlp.transformers import BertTokenizer
29 from pypinyin import pinyin
File /opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/opencc/init.py:6
3 import os
4 import sys
----> 6 from opencc.clib import opencc_clib
8 all = ['OpenCC', 'CONFIGS', 'version']
10 version = opencc_clib.version
ImportError: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/opencc/clib/opencc_clib.cpython-310-x86_64-linux-gnu.so)
我人傻了
解决了吗
我人傻了
我也是这个问题。
我人傻了
解决了吗,遇到了同样的问题
解决了解决了,在命令行中先运行pip uninstall opencc-python-reimplemented再运行pip install opencc-python-reimplemented
AIStudio用户Farewell@,感谢关注
执行命令
pip install paddlespeech -i https://pypi.tuna.tsinghua.edu.cn/simple
时遇到错误
Collecting seqeval Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9d/2d/233c79d5b4e5ab1dbf111242299153f3caddddbb691219f363ad55ce783d/seqeval-1.2.2.tar.gz (43 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [38 lines of output] WARNING: The repository located at mirrors.cloud.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.cloud.aliyuncs.com'. ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none) ERROR: No matching distribution found for setuptools_scm /root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead warnings.warn( /root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( Traceback (most recent call last): File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py", line 82, in fetch_build_egg subprocess.check_call(cmd) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/root/miniconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp19h72t5e', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-7ygs5ns0/seqeval_aad802f54b744003817cbee187128e0b/setup.py", line 27, in <module> setup( File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/__init__.py", line 86, in setup _install_setup_requires(attrs) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py", line 861, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve dist = best[req.key] = env.best_match( File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1062, in best_match return self.obtain(req, installer) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1074, in obtain return installer(requirement) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py", line 941, in fetch_build_egg return fetch_build_egg(self, req) File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py", line 84, in fetch_build_egg raise DistutilsError(str(e)) from e distutils.errors.DistutilsError: Command '['/root/miniconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp19h72t5e', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
这个问题解决了吗?
"pip install setuptools_scm" 解决
有必要每个包都检查不同版本的兼容性吗?竟然连numpy也要检查。安装起来非常慢……每次用百度的产品为啥总吃瘪……
result = asr(audio_file="zh.wav")
2024-02-29 17:52:30.650 | INFO | paddlespeech.s2t.modules.embedding:init:150 - max len: 5000
[2024-02-29 17:52:32,535] [ ERROR] - list index out of range
Traceback (most recent call last):
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/paddlespeech/cli/asr/infer.py", line 314, in infer
result_transcripts = self.model.decode(
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/paddle/base/dygraph/base.py", line 352, in _decorate_function
return func(*args, **kwargs)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/paddlespeech/s2t/models/u2/u2.py", line 818, in decode
hyp = self.attention_rescoring(
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/paddlespeech/s2t/models/u2/u2.py", line 532, in attention_rescoring
assert speech.shape[0] == speech_lengths.shape[0]
IndexError: list index out of range
Traceback (most recent call last):
File "", line 1, in
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/paddlespeech/cli/utils.py", line 328, in _warpper
return executor_func(self, *args, **kwargs)
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/paddlespeech/cli/asr/infer.py", line 512, in call
res = self.postprocess() # Retrieve result of asr.
File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/paddlespeech/cli/asr/infer.py", line 335, in postprocess
return self._outputs["result"]
KeyError: 'result'