首页 > 其他 > 详细

树莓派安装tensorflow1.11

时间:2019-01-06 19:14:39      阅读:204      评论:0      收藏:0      [点我收藏+]

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

树莓派安装tensorflow1.11

原文:https://www.cnblogs.com/pedada/p/10229816.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!