Closed dean-lhb closed 2 years ago
请安装conda创建python环境,并且使用清华源安装paddlespeech 。文档:https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/docs/source/install_cn.md
使用conda环境还是一样的错误
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/25/bd/e41fb569658637eada532d60025dae1fb2d4ac04c94a45160de750d51fd9/kaldiio-2.13.2.tar.gz#sha256=36dce8d837cd2b705c6900e6085bdb5e2bfe32ee31acf592aa414d216adab7c1 (from https://pypi.tuna.tsinghua.edu.cn/simple/kaldiio/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement kaldiio (from paddlespeech) (from versions: 2.13.2, 2.13.3, 2.13.4, 2.13.6, 2.13.7, 2.13.8, 2.13.9, 2.14.0, 2.14.1, 2.15.0, 2.15.1, 2.16.0a1, 2.16.0, 2.17.0, 2.17.1, 2.17.2) ERROR: No matching distribution found for kaldiio (/root/tools/venv) [root@izwz9amozfds88nbgfz PaddleSpeech]#
更新下 pip 试试
pip更新之后还是一样的错误:
(/root/tools/venv) [root@izwz9amozfds88nbgfz PaddleSpeech]# pip --version pip 21.3.1 from /root/tools/venv/lib/python3.7/site-packages/pip (python 3.7)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/25/bd/e41fb569658637eada532d60025dae1fb2d4ac04c94a45160de750d51fd9/kaldiio-2.13.2.tar.gz (17 kB) Preparing metadata (setup.py) ... error ERROR: Command errored out with exit status 1: command: /root/tools/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mxqyoz0y/kaldiio_1ddd5b0d39f64b6f910de61c4126e200/setup.py'"'"'; file='"'"'/tmp/pip-install-mxqyoz0y/kaldiio_1ddd5b0d39f64b6f910de61c4126e200/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-e7b9j688 cwd: /tmp/pip-install-mxqyoz0y/kaldiio_1ddd5b0d39f64b6f910de61c4126e200/ Complete output (35 lines): WARNING: The repository located at mirrors.aliyun.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.aliyun.com'. ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none) ERROR: No matching distribution found for pytest-runner /root/tools/venv/lib/python3.7/site-packages/setuptools/dist.py:720: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead % (opt, underscore_opt) Traceback (most recent call last): File "/root/tools/venv/lib/python3.7/site-packages/setuptools/installer.py", line 75, in fetch_build_egg subprocess.check_call(cmd) File "/root/tools/venv/lib/python3.7/subprocess.py", line 363, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/root/tools/venv/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpda5lypem', '--quiet', '--index-url', 'http://mirrors.aliyun.com/pypi/simple/', 'pytest-runner']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/25/bd/e41fb569658637eada532d60025dae1fb2d4ac04c94a45160de750d51fd9/kaldiio-2.13.2.tar.gz#sha256=36dce8d837cd2b705c6900e6085bdb5e2bfe32ee31acf592aa414d216adab7c1 (from https://pypi.tuna.tsinghua.edu.cn/simple/kaldiio/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement kaldiio (from paddlespeech) (from versions: 2.13.2, 2.13.3, 2.13.4, 2.13.6, 2.13.7, 2.13.8, 2.13.9, 2.14.0, 2.14.1, 2.15.0, 2.15.1, 2.16.0a1, 2.16.0, 2.17.0, 2.17.1, 2.17.2) ERROR: No matching distribution found for kaldiio
换成清华源也不行吗
先装下pytest-runner
(/root/tools/venv) [root@izwzms8nbgfz PaddleSpeech]# pytest ==================================================================== test session starts ==================================================================== platform linux -- Python 3.7.11, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 rootdir: /root/PaddleSpeech collected 3 items / 21 errors
========================================================================== ERRORS ===========================================================================
_____ ERROR collecting examples/other/1xt2x/src_deepspeech2x/test_model.py ____
ImportError while importing test module '/root/PaddleSpeech/examples/other/1xt2x/src_deepspeech2x/test_model.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../tools/venv/lib/python3.7/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
examples/other/1xt2x/src_deepspeech2x/init.py:24: in
请参考 https://github.com/PaddlePaddle/PaddleSpeech/discussions/1195 安装 pytest-runner 之后再安装 kaldio 和 paddlespeech
环境问题已经解决了 谢谢回复
你好 请问一下这个程序对内存要求很高吗 我的机器空闲内存1.5G好像不够用
(base) [root@izwz9am8nbgfz ~]# paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav phones_dict: None [2021-12-30 10:26:19,559] [ INFO] - File /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking... [2021-12-30 10:26:23,394] [ INFO] - Use pretrained model stored in: /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4 self.phones_dict: /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt [2021-12-30 10:26:23,395] [ INFO] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4 [2021-12-30 10:26:23,395] [ INFO] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4/default.yaml [2021-12-30 10:26:23,395] [ INFO] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4/snapshot_iter_76000.pdz self.phones_dict: /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt [2021-12-30 10:26:23,397] [ INFO] - File /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4.zip md5 checking... [2021-12-30 10:26:23,497] [ INFO] - Use pretrained model stored in: /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4 [2021-12-30 10:26:23,498] [ INFO] - /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4 [2021-12-30 10:26:23,498] [ INFO] - /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4/pwg_default.yaml [2021-12-30 10:26:23,498] [ INFO] - /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4/pwg_snapshot_iter_400000.pdz vocab_size: 268 frontend done! encoder_type is transformer decoder_type is transformer Killed
你好 请问一下这个程序对内存要求很高吗 我的机器空闲内存1.5G好像不够用
(base) [root@izwz9am8nbgfz ~]# paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav phones_dict: None [2021-12-30 10:26:19,559] [ INFO] - File /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4.zip md5 checking... [2021-12-30 10:26:23,394] [ INFO] - Use pretrained model stored in: /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4 self.phones_dict: /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt [2021-12-30 10:26:23,395] [ INFO] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4 [2021-12-30 10:26:23,395] [ INFO] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4/default.yaml [2021-12-30 10:26:23,395] [ INFO] - /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4/snapshot_iter_76000.pdz self.phones_dict: /root/.paddlespeech/models/fastspeech2_csmsc-zh/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt [2021-12-30 10:26:23,397] [ INFO] - File /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4.zip md5 checking... [2021-12-30 10:26:23,497] [ INFO] - Use pretrained model stored in: /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4 [2021-12-30 10:26:23,498] [ INFO] - /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4 [2021-12-30 10:26:23,498] [ INFO] - /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4/pwg_default.yaml [2021-12-30 10:26:23,498] [ INFO] - /root/.paddlespeech/models/pwgan_csmsc-zh/pwg_baker_ckpt_0.4/pwg_snapshot_iter_400000.pdz vocab_size: 268 frontend done! encoder_type is transformer decoder_type is transformer Killed
这个我不确定,但我感觉 1.5g 一般确实不够,我一般是在 GPU 上推理的,开发机配置很高,没有考虑过内存问题,但是 aistudio 最低配置应该是可以的,您可以试一下
好的 感谢回复
您系统自带的源应该也是阿里源吧,最近好几个用户都报了这个错,虽然指定了清华源,但是在装 pytest-runner 的时候还是用了阿里源
是的 跟你描述的完全一样
为什么我一运行PaddleSpeech-develop/examples/csmsc/tts3/run.sh就FileNotFoundError: [Errno 2] No such file or directory: 'dump/train/raw/metadata.jsonl',为什么没有这个文件,是我没运行什么命令缺失的吗还是下载的项目里没有才缺失的
错误信息:
ERROR: Could not find a version that satisfies the requirement kaldiio (from paddlespeech) (from versions: 2.13.2, 2.13.3, 2.13.4, 2.13.6, 2.13.7, 2.13.8, 2.13.9, 2.14.0, 2.14.1, 2.15.0, 2.15.1, 2.16.0a1, 2.16.0, 2.17.0, 2.17.1, 2.17.2) ERROR: No matching distribution found for kaldiio
环境信息:
Python 3.7.10
pip 21.3.1
CentOS Linux release 7.3.1611 (Core)
import platform platform.architecture() ('64bit', '')