我正试图使用机器学习库在debian服务器上部署一个flask应用程序,到目前为止,我用大多数ML库都做到了这一点,但由于TensorFlow我研究了很多,没有找到合适的解决方案,所以出现了这个错误。在
PS:我在我的应用程序中使用了3.7PythonVenV
ImportError: /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
试着更新,明白了吗
W: Failed to fetch http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found
还试图更新libgcc和libstdc++6,说我有最新版本。在
编辑:我怀疑Debian8Jessie不支持比3.4.20更高的glibcxx版本。在
所以,我刚测试了拉伸,效果很好。这个问题与操作系统有关在本例中,Debian 8Jessie,它无法处理比3.4.20版本更高的glibcxxx版本。在
PS:Stretch是Debian 9的分发名
这是Ubuntu16.04中这个问题的解决方案
您可以这样检查是否得到GLIBCXX所需的版本:
^{2}$相关问题 更多 >
编程相关推荐