1、使用paddlespeech技能时提示类似以下错误:
ImportError: cannot import name 'kaiser' from 'scipy.signal' (/path/to/miniconda3/envs/paddle_env/lib/python3.10/site-packages/scipy/signal/__init__.py)
修改pqmf.py:
vim /path/to/miniconda3/envs/paddle_env/lib/python3.10/site-packages/paddlespeech/t2s/modules/pqmf.py
把
from scipy.signal import kaiser
改为
from scipy.signal import kaiser_beta
2、提示错误 Error: Can not import paddle core while this file exists: /root/miniconda3/envs/paddle_env/lib/python3.10/site-packages/paddle/fluid/libpaddle.so 。说明安装的openssl版本不正确,请安装对应的openssl版本。举例按照openssl 1.1.1:
wget http://www.openssl.org/source/openssl-1.1.1.tar.gz tar -zxvf openssl-1.1.1.tar.gz cd openssl-1.1.1 ./config --prefix=/usr/local/openssl shared zlib make && make install mv /usr/bin/openssl /usr/bin/openssl.bak ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1 ln -s /usr/local/openssl/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1