参考:
`GLIBC_2.32' not found问题(降级opencc)
记录一个conda虚拟环境使用经验:
# 下载 miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -P tools/
# 安装 miniconda
bash tools/Miniconda3-latest-Linux-x86_64.sh -b
# conda 初始化
$HOME/miniconda3/bin/conda init
# 激活 conda
bash
# 创建一个 conda 的虚拟环境:
conda create -y -p tools/venv python=3.8
# 激活 conda 虚拟环境
conda activate tools/venv
# 失活 conda 虚拟环境
conda deactivate
记录一个测试cmd:
paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav
(/home/station/tts_test/tools/venv2) station@srhzdsapprol1700006:~/tts_test$ time paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/setuptools/sandbox.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, 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.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
dtype=np.complex,
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
/home/station/tts_test/output.wav
real 0m24.501s
user 0m21.893s
sys 0m2.845s
(/home/station/tts_test/tools/venv2) station@srhzdsapprol1700006:~/tts_test$