Cannot Import Tensorflow

asked 2021-10-12 22:41:29 -0600

anto gravatar image

updated 2021-10-13 01:44:38 -0600

gvdhoorn gravatar image

i cant run DQN in turtlebot3, because i cant import tensorflow in python 2.7

currently iam running on tensorlow 1.8.0 python 2.7.15 ROS Kinetic Ubuntu 16.04.7

all i get after trying to import tensorlow is this message!

anto@kulolo:~$ python -c 'import tensorflow as tf; print(tf.__version__)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/anto/anaconda2/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "/home/anto/anaconda2/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 52, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "/home/anto/anaconda2/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
  File "/home/anto/anaconda2/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 113
    class DescriptorBase(metaclass=DescriptorMetaclass):
                                  ^
edit retag flag offensive close merge delete