标签:fas ade ram htm match 状态 tla rtl 为什么
树莓派3B+
环境:2018-11-13-raspbian-stretch 初始状态
首先将本地更新一下和安装
sudo apt-get update
sudo apt-get upgrade
然后更新pip
sudo pip3 install --upgrade pip
再安装tensorflow
不知道为什么我把pip换成清华大学的源下载还是慢的一批(下载过慢,在线安装不成功),就把.whl 用迅雷下载下来,本地离线安装
sudo apt install libatlas-base-dev
sudo pip3 install [tensorflow文件]
安装成功
测试
pi@raspberrypi:~ $ python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf /usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime vers ion 3.4 of module ‘tensorflow.python.framework.fast_tensor_util‘ does not match runtime version 3.5 return f(*args, **kwds) /usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: builtins.type si ze changed, may indicate binary incompatibility. Expected 432, got 412 return f(*args, **kwds) >>> tf.enable_eager_execution() >>> hello = tf.constant(‘Hello, TensorFlow!‘) >>> print(hello) tf.Tensor(b‘Hello, TensorFlow!‘, shape=(), dtype=string)
安装成功
tensorflow whl文件:https://pan.baidu.com/s/1gri4KpybG3h_1FZWvuAUnA 提取码: tgue
参考网址:http://shumeipai.nxez.com/2018/08/03/tensorflow-officially-supports-the-raspberry-pi.html
标签:fas ade ram htm match 状态 tla rtl 为什么
原文地址:https://www.cnblogs.com/pedada/p/10229816.html