python plt引用_先引用matplotlib.pyplot再引用tensorflow报错问题

大家有没有碰到过先引用matplotlib.pyplot再引用tensorflow报错

Traceback (most recent call last):

File "", line 1, in

File "/usr/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 23, in

from tensorflow.python import *

File "/usr/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 55, in

raise ImportError(msg)

ImportError: Traceback (most recent call last):

File "/usr/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 49, in

from tensorflow.core.framework.graph_pb2 import *

File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 9, in

from google.protobuf import symbol_database as _symbol_database

ImportError: cannot import name symbol_database

Error importing tensorflow.  Unless you are using bazel,

you should not try to import tensorflow from its source directory;

please exit the tensorflow source tree, and relaunch your python interpreter

from there.


版权声明:本文为weixin_39727934原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。