树莓派4 Tensorflow安装

时间:2020-01-01 00:33:01

标签: python tensorflow raspberry-pi hdfs

pi@raspberrypi:~/examples/lite/examples/object_detection/raspberry_pi $ python3 detect_picamera.py --model /tmp/detect.tflite --labels /tmp/coco_labels.txt
2019-12-28 17:43:12.464130: E tensorflow/core/platform/hadoop/hadoop_file_system.cc:132] HadoopFileSystem load error: libhdfs.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "detect_picamera.py", line 34, in
from tf.lite.interpreter import Interpreter
ModuleNotFoundError: No module named 'tf'

使用pip3安装

2 个答案:

答案 0 :(得分:0)

关于覆盆子,实际上是包装中的错误 使用

from tensorflow.lite.interpreter import Interpreter 

答案 1 :(得分:0)

您的错误可能与您的Tensorflow安装有关。您可以尝试重新安装Tensorflow。在此处https://raspberrypi.stackexchange.com/a/107920/114206中查看我的答案。