我在Ubuntu 16.04LTS上部署了使用Tesorflow对象检测API运行的应用程序。它是一个在django上运行的Web应用程序,我想用apache和wsgi来提供它。当我通过我的服务器的IP地址访问apache服务器时,我收到以下错误:
ImportError at /
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: /usr/local/lib/python3.5/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: PyBytes_AsStringAndSize
Failed to load the native TensorFlow runtime.