【问题标题】:raspberry pi 4 tensorflow installation树莓派 4 张量流安装
【发布时间】:2020-01-01 00:33:01
【问题描述】:
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 安装

【问题讨论】:

  • 您使用的是虚拟环境还是类似的东西?
  • 否,直接用pip安装
  • 老实说,对于包和 Python 版本,我给出的唯一建议是:使用 Conda(和 Anaconda)。 tensorflow 安装是否正确,没有任何错误?
  • @prudhvirajboddu 我也遇到了同样的问题,你是怎么解决的?

标签: python tensorflow raspberry-pi hdfs


【解决方案1】:

涉及到覆盆子时,实际上是包中的错误 使用

from tensorflow.lite.interpreter import Interpreter 

【讨论】:

    【解决方案2】:

    您的错误可能与您的 Tensorflow 安装有关。您可以尝试重新安装 TensorFlow。在这里查看我的答案https://raspberrypi.stackexchange.com/a/107920/114206 来做到这一点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-23
      • 2019-12-04
      • 1970-01-01
      • 2021-08-26
      • 2021-04-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多