<p>我正试图使用机器学习库在debian服务器上部署一个flask应用程序,到目前为止,我用大多数ML库都做到了这一点,但由于TensorFlow我研究了很多,没有找到合适的解决方案,所以出现了这个错误。在</p>
<p>PS:我在我的应用程序中使用了3.7PythonVenV</p>
<blockquote>
<p>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. </p>
</blockquote>
<p>我显然没有看到GLIBCXX<strong>3.4.21</strong>,因为<code>strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX</code>显示了<strong>3.4.20</strong>是最新版本。在</p>
<p>已尝试此修复程序<code>add-apt-repository ppa:ubuntu-toolchain-r/test</code>
给出了:
<a href="https://i.stack.imgur.com/tZR1u.png" rel="nofollow noreferrer">result of the toolchain add attempt</a></p>
<p>试着更新,明白了吗</p>
<blockquote>
<p>W: Failed to fetch <a href="http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/jessie/main/binary-amd64/Packages" rel="nofollow noreferrer">http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/jessie/main/binary-amd64/Packages</a> 404 Not Found </p>
</blockquote>
<p>还试图更新libgcc和libstdc++6,说我有最新版本。在</p>
<p>编辑:我怀疑Debian8Jessie不支持比3.4.20更高的glibcxx版本。在</p>