我已经通过以下方法安装了 swig 和 swig 解码器包:
痛饮:百胜安装痛饮
Swig 解码器:
克隆https://github.com/PaddlePaddle/DeepSpeech/
cd 进入解码器/swig/ 并运行 ./setup.sh
问题:当我在 python 中导入 swig 解码器库时,它显示以下错误:
Python 2.7.5 (default, Feb 20 2018, 09:19:12)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import swig_decoders
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/swig_decoders-1.1-py2.7-linux-x86_64.egg/swig_decoders.py", line 28, in <module>
_swig_decoders = swig_import_helper()
File "/usr/lib64/python2.7/site-packages/swig_decoders-1.1-py2.7-linux-x86_64.egg/swig_decoders.py", line 24, in swig_import_helper
_mod = imp.load_module('_swig_decoders', fp, pathname, description)
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/python2.7/site-packages/swig_decoders-1.1-py2.7-linux-x86_64.egg/_swig_decoders.so)
>>>