樹莓派安裝tensorflow1.11


樹莓派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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM