ROBOTIS-GIT / turtlebot3_machine_learning

Apache License 2.0
119 stars 82 forks source link

TBS machine learning software setup error. Do we really use the tensor flow virtual env or not? #55

Open stevensu1838 opened 3 years ago

stevensu1838 commented 3 years ago

Hi team,

I followed your instructions on your e manual to install tensorflow and keras on my ROS kinetic PC. However e manual TurtleBot3 49 Machine Learning tutorial 1

However, when I run import tensorflow as tf I get the following errors. I am setting up this course for my students. Could you please update your e manual and make it reliable? Thanks a lot.

`mario@mario:~/Downloads$ python Python 2.7.15 |Anaconda, Inc.| (default, May 1 2018, 23:32:55) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import tensorflow Traceback (most recent call last): File "", line 1, in File "/home/mario/anaconda2/lib/python2.7/site-packages/tensorflow/init.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "/home/mario/anaconda2/lib/python2.7/site-packages/tensorflow/python/init.py", line 47, in import numpy as np File "/home/mario/anaconda2/lib/python2.7/site-packages/numpy/init.py", line 142, in from . import core File "/home/mario/anaconda2/lib/python2.7/site-packages/numpy/core/init.py", line 91, in raise ImportError(msg.format(path)) ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/mario/anaconda2/lib/python2.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version. import tensorflow as tf Traceback (most recent call last): File "", line 1, in File "/home/mario/anaconda2/lib/python2.7/site-packages/tensorflow/init.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "/home/mario/anaconda2/lib/python2.7/site-packages/tensorflow/python/init.py", line 47, in import numpy as np File "/home/mario/anaconda2/lib/python2.7/site-packages/numpy/init.py", line 140, in from . import _distributor_init ImportError: cannot import name _distributor_init

`

The last question is : Why is it that u created a virtual environment called tensorflow but never activated it? Does it mean that ur tensorflow is installed in the root/base environment? In this case whats the use of creating a virtual env?

This question is asked on your youtube tutorial as well not answered yet. Cheers

stevensu1838 commented 3 years ago

Hi team, I spend the whole to to try run your instructions on your e manual to install tensorflow and keras on my ROS kinetic PC. It didn't work. Would you please consider update your instruction to make it work? Thanks a lot. Cheers.

ROBOTIS-Will commented 3 years ago

Hi @stevensu1838 I'm sorry about the delayed response. The TurtleBot3 machine learning package is being reviewed and will be updated soon for the latest software support. Thank you.