天数 BI-150S 环境中需要降级 opencc-python-reimplemented 版本

Author: megeminiCreated Apr 17, 2026Updated Apr 17, 2026

Others

在 aistudio 的天数 BI-150S 环境中安装 paddlespeech 并使用以下代码:

python
from paddlespeech.cli.tts.infer import TTSExecutor
tts = TTSExecutor()
tts(text="今天天气十分不错。", output="output.wav")

提示错误:

bash
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/aistudio/external-libraries/lib/python3.10/site-packages/opencc/clib/opencc_clib.cpython-310-x86_64-linux-gnu.so)

将 opencc-python-reimplemented 降级后(原版本为 0.1.7)可正常使用:

bash
pip uninstall opencc-python-reimplemented -y
pip install opencc-python-reimplemented==0.1.6

Source: PaddlePaddle/PaddleSpeech