树莓派测试tensorflow报错:2023-03-02 09:52:06.592224: 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
原因:安装tensorflow版本较低,需要更高版本。
检查tensorflow版本:pip3 list
卸载低版本tensorflow
sudo pip3 uninstall tensorflow-estimator
sudo pip3 uninstall tensorflow
sudo pip3 uninstall tensorboard
安装高版本tensorflow(以2.3.0为例)
sudo pip3 install https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.3.0/tensorflow-2.3.0-cp37-none-linux_armv7l.whl
测试tensorflow
python3 -c "import tensorflow as tf;print(tf.reduce_sum(tf.random