背景
windows系统安装paddlespeech一路顺利
centos安装之前也是正常
今天centos再次安装各种报错,避免以后遇到浪费时间,记录下来,也给大家节约时间
报错
报错1
module 'numpy' has no attribute 'complex'.
解决方案
降低numpy
# 1. 卸载当前numpy库
pip uninstall numpy
# 2. 较老的NumPy版本
pip install numpy==1.21.6 -i https://pypi.tuna.tsinghua.edu.cn/simple
报错2: distutils.errors.DistutilsError: Command '['/opt/anaconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp_aaw5kbf', '--quiet', '--index-url', 'http://mirrors.tencentyun.com/pypi/simple', 'setuptools_scm']'
解决方案
信任腾讯域名
如果报其它域名,请信任其它域名
pip install paddlespeech --trusted-host mirrors.tencentyun.com
报错3
无法安装setuptools_scm
解决方案
直接手动安装
pip install setuptools_scm
报错4
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (
解决方案
参考链接:已解决Error:AttributeError: module ‘numpy‘ has no attribute ‘complex‘_attributeerror: module 'numpy' has no attribute 'c-CSDN博客