linux需要的GLIBCXX版本,/usr/lib/x86_64linuxgnu/libstdc++.so.6:找不到TensorF所需的“GLIBCXX_3.4.21”版本...

我正试图使用机器学习库在debian服务器上部署一个flask应用程序,到目前为止,我用大多数ML库都做到了这一点,但由于TensorFlow我研究了很多,没有找到合适的解决方案,所以出现了这个错误。在

PS:我在我的应用程序中使用了3.7PythonVenVImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /flask/wstest/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)

Mar 01 15:32:11 django gunicorn[8803]: Failed to load the native TensorFlow runtime.

我显然没有看到GLIBCXX3.4.21,因为strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX显示了3.4.20是最新版本。在

已尝试此修复程序add-apt-repository ppa:ubuntu-toolchain-r/test

给出了:

result of the toolchain add attempt

试着更新,明白了吗

还试图更新libgcc和libstdc++6,说我有最新版本。在

编辑:我怀疑Debian8Jessie不支持比3.4.20更高的glibcxx版本。在

你可能感兴趣的:(linux需要的GLIBCXX版本,/usr/lib/x86_64linuxgnu/libstdc++.so.6:找不到TensorF所需的“GLIBCXX_3.4.21”版本...)